summaryrefslogtreecommitdiffstats
path: root/usr.sbin/bsnmpd
diff options
context:
space:
mode:
authorharti <harti@FreeBSD.org>2006-01-26 12:15:06 +0000
committerharti <harti@FreeBSD.org>2006-01-26 12:15:06 +0000
commit55cbb46d5fdc41cdf7e0751c870014a55c944b48 (patch)
tree9cdd14e2be3f40795bdf284a9eb1eadfeb331a65 /usr.sbin/bsnmpd
parent0dafc475950c55a5fd676d03caf579072375505a (diff)
downloadFreeBSD-src-55cbb46d5fdc41cdf7e0751c870014a55c944b48.zip
FreeBSD-src-55cbb46d5fdc41cdf7e0751c870014a55c944b48.tar.gz
Fix a bug in the processor load code: the wrong process was used to
get the inital processor load. Also fix compilation on sparc64 without NDEBUG.
Diffstat (limited to 'usr.sbin/bsnmpd')
-rw-r--r--usr.sbin/bsnmpd/modules/snmp_hostres/hostres_processor_tbl.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/bsnmpd/modules/snmp_hostres/hostres_processor_tbl.c b/usr.sbin/bsnmpd/modules/snmp_hostres/hostres_processor_tbl.c
index cca9bcb..faba176 100644
--- a/usr.sbin/bsnmpd/modules/snmp_hostres/hostres_processor_tbl.c
+++ b/usr.sbin/bsnmpd/modules/snmp_hostres/hostres_processor_tbl.c
@@ -242,7 +242,7 @@ processor_get_pids(void)
HRDBG("CPU no. %d with SNMP index=%d has idle PID %d",
entry->cpu_no, entry->index, entry->idle_pid);
- save_sample(entry, plist);
+ save_sample(entry, kp);
}
}
@@ -427,9 +427,9 @@ static void
get_cpus_samples(void *arg __unused)
{
- HRDBG("[%llu] ENTER", get_ticks());
+ HRDBG("[%llu] ENTER", (unsigned long long)get_ticks());
refresh_processor_tbl();
- HRDBG("[%llu] EXIT", get_ticks());
+ HRDBG("[%llu] EXIT", (unsigned long long)get_ticks());
}
/**
OpenPOWER on IntegriCloud