Change pacing timer from 100ms to 1ms to smoothen out microbusts as much as possible (#460)
Этот коммит содержится в:
родитель
14caac895c
Коммит
93c498d417
@ -1200,8 +1200,8 @@ iperf_create_send_timers(struct iperf_test * test)
|
||||
sp->green_light = 1;
|
||||
if (test->settings->rate != 0) {
|
||||
cd.p = sp;
|
||||
sp->send_timer = tmr_create((struct timeval*) 0, send_timer_proc, cd, 100000L, 1);
|
||||
/* (Repeat every tenth second - arbitrary often value.) */
|
||||
/* (Repeat every millisecond - arbitrary value to provide smooth pacing.) */
|
||||
sp->send_timer = tmr_create((struct timeval*) 0, send_timer_proc, cd, 1000L, 1);
|
||||
if (sp->send_timer == NULL) {
|
||||
i_errno = IEINITTEST;
|
||||
return -1;
|
||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user