projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
467d76e
)
virt plugin: Fix memory stats to use the same units
author
Zollner Robert
<wolfit_ro@yahoo.com>
Thu, 11 Dec 2014 00:18:31 +0000
(
02:18
+0200)
committer
Zollner Robert
<wolfit_ro@yahoo.com>
Thu, 11 Dec 2014 00:18:31 +0000
(
02:18
+0200)
memory_submit and memory_stats_submit should use same units "Bytes"
- Fixes: #856
src/virt.c
patch
|
blob
|
history
diff --git
a/src/virt.c
b/src/virt.c
index
6118c0f
..
5f87625
100644
(file)
--- a/
src/virt.c
+++ b/
src/virt.c
@@
-588,7
+588,7
@@
lv_read (void)
}
for (j = 0; j < status; j++) {
- memory_stats_submit ((gauge_t) minfo[j].val, domains[i], minfo[j].tag);
+ memory_stats_submit ((gauge_t) minfo[j].val
* 1024
, domains[i], minfo[j].tag);
}
sfree (minfo);