openbsd-ports/net/ucd-snmp/patches/patch-agent_mibgroup_mibII_interfaces_c
danh 14a604a2c8 update to ucd-snmp 4.2.6
from Sergio Jimenez Romero <tripledes@eslack.org>
2003-04-22 15:11:05 +00:00

17 lines
506 B
Plaintext

--- agent/mibgroup/mibII/interfaces.c.orig Mon Jun 10 06:10:24 2002
+++ agent/mibgroup/mibII/interfaces.c Tue Apr 22 10:28:42 2003
@@ -1889,11 +1889,10 @@ static int Interface_Scan_Get_Count (voi
#else /* hpux11 */
-static time_t scan_time = 0;
-
static int Interface_Scan_Get_Count (void)
{
- time_t time_now = time(NULL);
+ static time_t scan_time = 0;
+ time_t time_now = time(NULL);
if (!Interface_Count || (time_now > scan_time + 60)) {
scan_time = time_now;