From 7bf99b36d8ed91472a7f0491baaad9d4e579500a Mon Sep 17 00:00:00 2001 From: =?utf8?q?Johan=20Wir=C3=A9n?= Date: Mon, 18 Mar 2013 22:56:55 +0100 Subject: [PATCH] Reports memory allocation in bytes, not kilobytes. --- src/libvirt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) { -- 2.30.2