openbsd-ports/net/net-snmp/patches/patch-agent_mibgroup_mibII_interfaces_c

17 lines
540 B
Plaintext
Raw Normal View History

$OpenBSD: patch-agent_mibgroup_mibII_interfaces_c,v 1.2 2005/11/05 19:09:38 bernd Exp $
--- agent/mibgroup/mibII/interfaces.c.orig Sun Jun 19 15:47:57 2005
+++ agent/mibgroup/mibII/interfaces.c Thu Nov 3 23:31:04 2005
@@ -2218,11 +2218,10 @@ Interface_Scan_Get_Count(void)
#else /* hpux11 */
-static time_t scan_time = 0;
-
int
Interface_Scan_Get_Count(void)
{
+ static time_t scan_time = 0;
time_t time_now = time(NULL);
if (!Interface_Count || (time_now > scan_time + 60)) {