From 34d1c751c009bed32c59d45ad1d71d73a787c6f5 Mon Sep 17 00:00:00 2001 From: Florian Forster Date: Wed, 13 Jun 2007 23:21:38 +0200 Subject: [PATCH] cpu plugin: Submit the right values in the Darwin code. --- src/cpu.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 /* -- 2.30.2