Added instance type "total"
authorJohan Wirén <johan.wiren.se@gmail.com>
Mon, 18 Mar 2013 22:55:39 +0000 (23:55 +0100)
committerJohan Wirén <johan.wiren.se@gmail.com>
Mon, 18 Mar 2013 22:55:39 +0000 (23:55 +0100)
src/libvirt.c

index f8be994..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);
 }