mirror of
https://github.com/xzeldon/htop.git
synced 2025-07-12 12:14:36 +03:00
NetBSD: Rework CPU counting.
This commit is contained in:
@ -200,7 +200,7 @@ int Platform_getMaxPid() {
|
||||
|
||||
double Platform_setCPUValues(Meter* this, int cpu) {
|
||||
const NetBSDProcessList* npl = (const NetBSDProcessList*) this->pl;
|
||||
const CPUData* cpuData = &npl->cpus[cpu];
|
||||
const CPUData* cpuData = &npl->cpuData[cpu];
|
||||
double total = cpuData->totalPeriod == 0 ? 1 : cpuData->totalPeriod;
|
||||
double totalPercent;
|
||||
double* v = this->values;
|
||||
|
Reference in New Issue
Block a user