diff options
author | Nathan Scott <nathans@redhat.com> | 2020-08-19 16:43:55 +1000 |
---|---|---|
committer | Nathan Scott <nathans@redhat.com> | 2020-08-19 16:43:55 +1000 |
commit | 5a17cee74d1a382649570f1b939c2d7a9d8514b6 (patch) | |
tree | e01961c473421de3ab6db4d09ac6acc05073625b /openbsd | |
parent | ed6f22a847fe1f12c38d32aaa960bcd48dc5b7c0 (diff) | |
parent | 060aa2b20f88a7dbc1a8b77724df612d3b6fd9ea (diff) |
Merge branch 'hishamhm-pull-817'
Diffstat (limited to 'openbsd')
-rw-r--r-- | openbsd/Platform.c | 4 |
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]; |