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.
This commit is contained in:
Hartmut Brandt 2006-01-26 12:15:06 +00:00
parent c8203bd856
commit 1de368e2f2
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=154859

View File

@ -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());
}
/**