projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4284a4d
)
Fix typo in if and return
author
Manuel Luis Sanmartin Rozada
<manuel.luis@gmail.com>
Sun, 30 Sep 2012 12:06:02 +0000
(14:06 +0200)
committer
Florian Forster
<octo@collectd.org>
Tue, 2 Oct 2012 19:58:59 +0000
(21:58 +0200)
src/contextswitch.c
patch
|
blob
|
history
diff --git
a/src/contextswitch.c
b/src/contextswitch.c
index
d3e6fe6
..
344f76e
100644
(file)
--- 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;