f0c239fe26
snmpd: - fix trap processing from SMUX peers - fix disman/event monitoring crashes - fix bug 1399369: ifNumber broken - fix re-init of daemons after SIGHUP snmptrapd: - fix bug 1420758/1458815: snmptrapd aborts/loops in select() - fix re-init of daemons after SIGHUP snmplib: - fix OID lookups for fully qualified object names (eg .iso.org) snmpusm: - performance improvement when changing localized keys perl: - The perl modules now check to make sure they're building against the proper Net-SNMP version. misc: - Coverity fixes
24 lines
904 B
Text
24 lines
904 B
Text
$NetBSD: patch-am,v 1.5 2006/07/29 16:48:27 adam Exp $
|
|
|
|
--- agent/mibgroup/host/hr_swrun.c.orig 2006-06-01 15:29:13.000000000 +0200
|
|
+++ agent/mibgroup/host/hr_swrun.c
|
|
@@ -896,6 +896,8 @@ var_hrswrun(struct variable * vp,
|
|
else
|
|
long_return = 4; /* application */
|
|
#endif
|
|
+#elif defined darwin
|
|
+ long_return = -1;
|
|
#else
|
|
long_return = 4; /* application */
|
|
#endif
|
|
@@ -1037,6 +1039,10 @@ var_hrswrun(struct variable * vp,
|
|
long_return = 0;
|
|
#elif defined(freebsd5)
|
|
long_return = proc_table[LowProcIndex].ki_runtime / 100000;
|
|
+ #elif defined(dragonfly)
|
|
+ long_return = proc_table[LowProcIndex].kp_eproc.e_uticks +
|
|
+ proc_table[LowProcIndex].kp_eproc.e_sticks +
|
|
+ proc_table[LowProcIndex].kp_eproc.e_iticks;
|
|
#else
|
|
long_return = proc_table[LowProcIndex].kp_proc.p_uticks +
|
|
proc_table[LowProcIndex].kp_proc.p_sticks +
|