From: Johan Wirén Date: Mon, 18 Mar 2013 21:56:55 +0000 (+0100) Subject: Reports memory allocation in bytes, not kilobytes. X-Git-Tag: collectd-5.3.0~28^2~1 X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=7bf99b36d;p=collectd.git Reports memory allocation in bytes, not kilobytes. --- diff --git a/src/libvirt.c b/src/libvirt.c index 10ca37f7..f8be994e 100644 --- a/src/libvirt.c +++ b/src/libvirt.c @@ -441,7 +441,7 @@ lv_read (void) } cpu_submit (info.cpuTime, domains[i], "virt_cpu_total"); - memory_submit ((gauge_t) info.memory, domains[i]); + memory_submit ((gauge_t) info.memory * 1024, domains[i]); vinfo = malloc (info.nrVirtCpu * sizeof (vinfo[0])); if (vinfo == NULL) {