From: Florian Forster Date: Wed, 13 Jun 2007 21:21:38 +0000 (+0200) Subject: cpu plugin: Submit the right values in the Darwin code. X-Git-Tag: collectd-4.0.3~7 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=34d1c751c009bed32c59d45ad1d71d73a787c6f5;p=collectd.git cpu plugin: Submit the right values in the Darwin code. --- diff --git a/src/cpu.c b/src/cpu.c index 99e7a669..4c852a53 100644 --- a/src/cpu.c +++ b/src/cpu.c @@ -219,9 +219,9 @@ static int cpu_read (void) } submit (cpu, "user", (counter_t) cpu_info.cpu_ticks[CPU_STATE_USER]); - submit (cpu, "nice", (counter_t) cpu_info.cpu_ticks[CPU_STATE_USER]); - submit (cpu, "system", (counter_t) cpu_info.cpu_ticks[CPU_STATE_USER]); - submit (cpu, "idle", (counter_t) cpu_info.cpu_ticks[CPU_STATE_USER]); + submit (cpu, "nice", (counter_t) cpu_info.cpu_ticks[CPU_STATE_NICE]); + submit (cpu, "system", (counter_t) cpu_info.cpu_ticks[CPU_STATE_SYSTEM]); + submit (cpu, "idle", (counter_t) cpu_info.cpu_ticks[CPU_STATE_IDLE]); #endif /* PROCESSOR_CPU_LOAD_INFO */ #if PROCESSOR_TEMPERATURE /*