Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 9 Jan 2019 05:53:59 +0000 (UTC)
From:      Gleb Smirnoff <glebius@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r342877 - head/contrib/bsnmp/snmp_mibII
Message-ID:  <201901090553.x095rxQB003922@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201901090553.x095rxQB003922>