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.octo.it/?a=commitdiff_plain;h=7bf99b36d8ed91472a7f0491baaad9d4e579500a;hp=571adf14833c5425a80cd2e33790daee1c0735d5;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) {