Timer interval is correctly counted in ticks (1/100 s) in
mibif_reset_hc_timer(). Multiplication by 10 is erroneous and is probably a blind copy and paste from next function. PR: 132993 Submitted by: Vitezslav Novy <vnovy vnovy.net>
This commit is contained in:
parent
bf6e258bc4
commit
3231251399
@ -411,7 +411,7 @@ mibif_reset_hc_timer(void)
|
||||
hc_update_timer = NULL;
|
||||
}
|
||||
update_hc_counters(NULL);
|
||||
if ((hc_update_timer = timer_start_repeat(ticks * 10, ticks * 10,
|
||||
if ((hc_update_timer = timer_start_repeat(ticks, ticks,
|
||||
update_hc_counters, NULL, module)) == NULL) {
|
||||
syslog(LOG_ERR, "timer_start(%u): %m", ticks);
|
||||
return;
|
||||
|
Loading…
Reference in New Issue
Block a user