mirror of
https://github.com/upa/mscp.git
synced 2026-05-19 02:57:30 +08:00
adjust the timing of verbose printing of the bw limit value
This commit is contained in:
@@ -273,7 +273,6 @@ struct mscp *mscp_init(struct mscp_opts *o, struct mscp_ssh_opts *s)
|
|||||||
priv_set_errv("bwlimit_init: %s", strerrno());
|
priv_set_errv("bwlimit_init: %s", strerrno());
|
||||||
goto free_out;
|
goto free_out;
|
||||||
}
|
}
|
||||||
pr_notice("bitrate limit: %lu bps", o->bitrate);
|
|
||||||
|
|
||||||
/* workaround: set libssh using openssh proxyjump
|
/* workaround: set libssh using openssh proxyjump
|
||||||
* https://gitlab.com/libssh/libssh-mirror/-/issues/319 */
|
* https://gitlab.com/libssh/libssh-mirror/-/issues/319 */
|
||||||
@@ -563,6 +562,9 @@ int mscp_start(struct mscp *m)
|
|||||||
m->opts->nr_threads = n;
|
m->opts->nr_threads = n;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
pr_notice("threads: %d",m->opts->nr_threads);
|
||||||
|
pr_notice("bwlimit: %ld bps", m->bw.bps);
|
||||||
|
|
||||||
for (n = 0; n < m->opts->nr_threads; n++) {
|
for (n = 0; n < m->opts->nr_threads; n++) {
|
||||||
t = mscp_copy_thread_spawn(m, n);
|
t = mscp_copy_thread_spawn(m, n);
|
||||||
if (!t)
|
if (!t)
|
||||||
|
|||||||
Reference in New Issue
Block a user