summaryrefslogtreecommitdiffstats
path: root/netbsd/Platform.c
diff options
context:
space:
mode:
authorfraggerfox <santhosh.raju@gmail.com>2021-08-03 08:35:02 +0530
committerBenBE <BenBE@geshi.org>2021-08-05 10:25:59 +0200
commit2e3f34f5c1f7cff7621fa453e2315b3af62554e7 (patch)
tree536eb46f55171c4611980d721ec1c013ffa3c4c8 /netbsd/Platform.c
parented82ce6456f0f904a0ab2b346b85d7cf46df109c (diff)
NetBSD: Rework CPU counting.
Diffstat (limited to 'netbsd/Platform.c')
-rw-r--r--netbsd/Platform.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/netbsd/Platform.c b/netbsd/Platform.c
index 25db2d84..d3840ad1 100644
--- a/netbsd/Platform.c
+++ b/netbsd/Platform.c
@@ -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;

© 2014-2024 Faster IT GmbH | imprint | privacy policy