virt plugin: Skip 'last_update' reporting as that is not memory but timestamp
authorPavel Rochnyack <pavel2000@ngs.ru>
Sun, 12 May 2019 13:07:56 +0000 (20:07 +0700)
committerPavel Rochnyack <pavel2000@ngs.ru>
Sun, 12 May 2019 18:47:49 +0000 (01:47 +0700)
src/virt.c

index 9d368af..4ec7695 100644 (file)
@@ -926,6 +926,10 @@ static void memory_stats_submit(gauge_t value, virDomainPtr dom,
     return;
   }
 
+  /* Skip 'last_update' reporting as that is not memory but timestamp */
+  if (tag_index == 9)
+    return;
+
   submit(dom, "memory", tags[tag_index], &(value_t){.gauge = value}, 1);
 }