2005-11-05 14:09:38 -05:00
|
|
|
$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)
|
2004-08-03 13:47:12 -04:00
|
|
|
|
|
|
|
#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)) {
|