summaryrefslogtreecommitdiffstats
path: root/openbsd
diff options
context:
space:
mode:
authorNathan Scott <nathans@redhat.com>2020-08-19 16:43:55 +1000
committerNathan Scott <nathans@redhat.com>2020-08-19 16:43:55 +1000
commit5a17cee74d1a382649570f1b939c2d7a9d8514b6 (patch)
treee01961c473421de3ab6db4d09ac6acc05073625b /openbsd
parented6f22a847fe1f12c38d32aaa960bcd48dc5b7c0 (diff)
parent060aa2b20f88a7dbc1a8b77724df612d3b6fd9ea (diff)
Merge branch 'hishamhm-pull-817'
Diffstat (limited to 'openbsd')
-rw-r--r--openbsd/Platform.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/openbsd/Platform.c b/openbsd/Platform.c
index 4bb2e35e..427c9813 100644
--- a/openbsd/Platform.c
+++ b/openbsd/Platform.c
@@ -50,7 +50,7 @@ extern ProcessFieldData Process_fields[];
#define MAXCPU 256
// XXX: probably should be a struct member
-static int64_t old_v[MAXCPU][5];
+static int64_t old_v[MAXCPU][CPUSTATES];
/*
* Copyright (c) 1984, 1989, William LeFebvre, Rice University
@@ -229,7 +229,7 @@ double Platform_setCPUValues(Meter* this, int cpu) {
v[i] = diff_v[i] / 10.;
}
- Meter_setItems(this, 4);
+ Meter_setItems(this, CP_IDLE);
perc = v[0] + v[1] + v[2] + v[3];

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