1
1

Change pacing timer from 100ms to 1ms to smoothen out microbusts as much as possible (#460)

Этот коммит содержится в:
woody77 2016-09-21 10:31:48 -07:00 коммит произвёл Bruce A. Mah
родитель 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;