projects
/
collectd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
AUTHORS: I take care of EPEL too
[collectd.git]
/
src
/
contextswitch.c
diff --git
a/src/contextswitch.c
b/src/contextswitch.c
index
d3e6fe6
..
76e2a6c
100644
(file)
--- a/
src/contextswitch.c
+++ b/
src/contextswitch.c
@@
-22,6
+22,7
@@
**/
#include "collectd.h"
**/
#include "collectd.h"
+
#include "common.h"
#include "plugin.h"
#include "common.h"
#include "plugin.h"
@@
-133,7
+134,7
@@
static int cs_read (void)
perfstat_cpu_total_t perfcputotal;
status = perfstat_cpu_total(NULL, &perfcputotal, sizeof(perfstat_cpu_total_t), 1);
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",
{
char errbuf[1024];
ERROR ("contextswitch plugin: perfstat_cpu_total: %s",
@@
-142,7
+143,7
@@
static int cs_read (void)
}
cs_submit(perfcputotal.pswitch);
}
cs_submit(perfcputotal.pswitch);
-
return (0)
;
+
status = 0
;
#endif /* defined(HAVE_PERFSTAT) */
return status;
#endif /* defined(HAVE_PERFSTAT) */
return status;