From: Florian Forster Date: Sun, 15 Feb 2009 13:33:39 +0000 (+0100) Subject: cpu plugin: Fix indentation for the libstatgrab code. X-Git-Tag: collectd-4.6.0~26 X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=034b20cd422bdfbf74cb69822d700724eeb51fe6;p=collectd.git cpu plugin: Fix indentation for the libstatgrab code. --- diff --git a/src/cpu.c b/src/cpu.c index aab1739b..6e8a62da 100644 --- a/src/cpu.c +++ b/src/cpu.c @@ -454,21 +454,21 @@ static int cpu_read (void) /* #endif HAVE_SYSCTLBYNAME */ #elif defined(HAVE_LIBSTATGRAB) - sg_cpu_stats *cs; - cs = sg_get_cpu_stats (); - - if (cs == NULL) - { - ERROR ("cpu plugin: sg_get_cpu_stats failed."); - return (-1); - } - - submit (0, "idle", (counter_t) cs->idle); - submit (0, "nice", (counter_t) cs->nice); - submit (0, "swap", (counter_t) cs->swap); - submit (0, "system", (counter_t) cs->kernel); - submit (0, "user", (counter_t) cs->user); - submit (0, "wait", (counter_t) cs->iowait); + sg_cpu_stats *cs; + cs = sg_get_cpu_stats (); + + if (cs == NULL) + { + ERROR ("cpu plugin: sg_get_cpu_stats failed."); + return (-1); + } + + submit (0, "idle", (counter_t) cs->idle); + submit (0, "nice", (counter_t) cs->nice); + submit (0, "swap", (counter_t) cs->swap); + submit (0, "system", (counter_t) cs->kernel); + submit (0, "user", (counter_t) cs->user); + submit (0, "wait", (counter_t) cs->iowait); #endif /* HAVE_LIBSTATGRAB */ return (0);