From: Manuel Luis Sanmartin Rozada Date: Sun, 30 Sep 2012 12:06:02 +0000 (+0200) Subject: Fix typo in if and return X-Git-Tag: collectd-5.2.0~50 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=ce2d1baac92633125af1c390894b2c60123e7c44;p=collectd.git Fix typo in if and return --- diff --git a/src/contextswitch.c b/src/contextswitch.c index d3e6fe63..344f76e7 100644 --- a/src/contextswitch.c +++ b/src/contextswitch.c @@ -133,7 +133,7 @@ static int cs_read (void) perfstat_cpu_total_t perfcputotal; status = perfstat_cpu_total(NULL, &perfcputotal, sizeof(perfstat_cpu_total_t), 1); - if (status < 0); + if (status < 0) { char errbuf[1024]; ERROR ("contextswitch plugin: perfstat_cpu_total: %s", @@ -142,7 +142,7 @@ static int cs_read (void) } cs_submit(perfcputotal.pswitch); - return (0); + status = 0; #endif /* defined(HAVE_PERFSTAT) */ return status;