diff --git a/openbsd/Platform.c b/openbsd/Platform.c index a3648f4e..cda424b6 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 - 1; i++) { + for (i = 0; i < CPUSTATES; i++) { old_v[cpu-1][i] = new_v[i]; v[i] = diff_v[i] / 10.; }