From ce2d1baac92633125af1c390894b2c60123e7c44 Mon Sep 17 00:00:00 2001 From: Manuel Luis Sanmartin Rozada Date: Sun, 30 Sep 2012 14:06:02 +0200 Subject: [PATCH] Fix typo in if and return --- src/contextswitch.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; -- 2.11.0