diff --git a/src/contextswitch.c b/src/contextswitch.c
index d3e6fe63fd0ae4167106faada1df850b7ed25b49..344f76e76f0c29242ac20821d8efb25f83f12871 100644 (file)
--- a/src/contextswitch.c
+++ b/src/contextswitch.c
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",
}
cs_submit(perfcputotal.pswitch);
- return (0);
+ status = 0;
#endif /* defined(HAVE_PERFSTAT) */
return status;