11d8b0dd79
Changelog: http://net-snmp.sourceforge.net/about/ChangeLog.html tested by Graeme Lee, ok mbalmer@
17 lines
538 B
Plaintext
17 lines
538 B
Plaintext
$OpenBSD: patch-agent_mibgroup_mibII_interfaces_c,v 1.4 2007/09/26 20:03:42 rui Exp $
|
|
--- agent/mibgroup/mibII/interfaces.c.orig Mon Nov 6 23:43:27 2006
|
|
+++ agent/mibgroup/mibII/interfaces.c Sat Sep 15 23:12:28 2007
|
|
@@ -2097,11 +2097,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)) {
|