Code

Reports memory allocation in bytes, not kilobytes.
authorJohan Wirén <johan.wiren.se@gmail.com>
Mon, 18 Mar 2013 21:56:55 +0000 (22:56 +0100)
committerJohan Wirén <johan.wiren.se@gmail.com>
Mon, 18 Mar 2013 21:56:55 +0000 (22:56 +0100)
src/libvirt.c

index 10ca37f7e92dcb57b04f207a84d2f43e3c0f438e..f8be994eec3d2ddad8b0b081ec0e71c2dacb465a 100644 (file)
@@ -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) {