projects
/
collectd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Merge pull request #1853 from rubenk/python-plugin-fix-building-on-osx
[collectd.git]
/
src
/
xencpu.c
diff --git
a/src/xencpu.c
b/src/xencpu.c
index
59fbcb9
..
f1cd938
100644
(file)
--- a/
src/xencpu.c
+++ b/
src/xencpu.c
@@
-142,8
+142,8
@@
static int xencpu_read (void)
return (-1);
}
- int
cpu,
status;
- for (cpu = 0; cpu < nr_cpus; cpu++) {
+ int status;
+ for (
int
cpu = 0; cpu < nr_cpus; cpu++) {
gauge_t rate = NAN;
value_t value = {.derive = cpu_info[cpu].idletime};