discomfitor pushed a commit to branch master. http://git.enlightenment.org/core/enlightenment.git/commit/?id=6bd2d74cdc990e4465b5ababe71d579b03b3c87f
commit 6bd2d74cdc990e4465b5ababe71d579b03b3c87f Author: Al Poole <nets...@gmail.com> Date: Fri Aug 4 17:22:32 2017 -0400 sysinfo: fix single-core OpenBSD results. Summary: Basically missed this one. CPU_STATES is 6 as it's still supposedly a work-in-progress. But we only need 5 for all queries (for now). Reviewers: stephenmhouston, zmike! Subscribers: cedric Differential Revision: https://phab.enlightenment.org/D5070 --- src/modules/sysinfo/cpumonitor/cpumonitor_sysctl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/sysinfo/cpumonitor/cpumonitor_sysctl.c b/src/modules/sysinfo/cpumonitor/cpumonitor_sysctl.c index 6964858a2..061a69507 100644 --- a/src/modules/sysinfo/cpumonitor/cpumonitor_sysctl.c +++ b/src/modules/sysinfo/cpumonitor/cpumonitor_sysctl.c @@ -89,7 +89,7 @@ _cpumonitor_sysctl_getusage(unsigned long *prev_total, unsigned long *prev_idle, return; unsigned long total = 0; - for (j = 0; j < CPU_STATES; j++) + for (j = 0; j < CPU_STATES - 1; j++) total += cpu_times[j]; unsigned long idle = cpu_times[4]; --