summaryrefslogtreecommitdiffstats
path: root/openbsd
diff options
context:
space:
mode:
Diffstat (limited to 'openbsd')
-rw-r--r--openbsd/Platform.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/openbsd/Platform.c b/openbsd/Platform.c
index cda424b6..a3648f4e 100644
--- a/openbsd/Platform.c
+++ b/openbsd/Platform.c
@@ -220,7 +220,7 @@ double Platform_setCPUValues(Meter* this, int cpu) {
percentages(CPUSTATES, diff_v, new_v,
(int64_t *)old_v[cpu-1], scratch_v);
- for (i = 0; i < CPUSTATES; i++) {
+ for (i = 0; i < CPUSTATES - 1; i++) {
old_v[cpu-1][i] = new_v[i];
v[i] = diff_v[i] / 10.;
}