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:
parent
0dafc47595
commit
55cbb46d5f
@ -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());
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user