Code

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 f8be994eec3d2ddad8b0b081ec0e71c2dacb465a..cfabaaa235d6efe81da7896e4c51185d6afa08a3 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);
 }