Remove superfluous debug statements
[collectd.git] / src / libvirt.c
index 10ca37f..cfabaaa 100644 (file)
@@ -191,6 +191,7 @@ memory_submit (gauge_t memory, virDomainPtr dom)
     vl.values_len = 1;
 
     sstrncpy (vl.type, "memory", sizeof (vl.type));
+    sstrncpy (vl.type_instance, "total", sizeof (vl.type_instance));
 
     plugin_dispatch_values (&vl);
 }
@@ -441,7 +442,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) {