svn commit: r342877 - head/contrib/bsnmp/snmp_mibII
Gleb Smirnoff
glebius at FreeBSD.org
Wed Jan 9 05:54:00 UTC 2019
Author: glebius
Date: Wed Jan 9 05:53:59 2019
New Revision: 342877
URL: https://svnweb.freebsd.org/changeset/base/342877
Log:
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>
Modified:
head/contrib/bsnmp/snmp_mibII/mibII.c
Modified: head/contrib/bsnmp/snmp_mibII/mibII.c
==============================================================================
--- head/contrib/bsnmp/snmp_mibII/mibII.c Wed Jan 9 05:30:46 2019 (r342876)
+++ head/contrib/bsnmp/snmp_mibII/mibII.c Wed Jan 9 05:53:59 2019 (r342877)
@@ -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;
More information about the svn-src-head
mailing list