openbsd-ports/net/net-snmp/patches/patch-agent_mibgroup_mibII_interfaces_c
2010-10-25 22:59:12 +00:00

17 lines
540 B
Plaintext

$OpenBSD: patch-agent_mibgroup_mibII_interfaces_c,v 1.6 2010/10/25 22:59:12 sthen Exp $
--- agent/mibgroup/mibII/interfaces.c.orig Thu Jul 29 15:58:47 2010
+++ agent/mibgroup/mibII/interfaces.c Wed Oct 6 23:25:16 2010
@@ -2137,11 +2137,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)) {