From: Pavel Rochnyack Date: Sun, 12 May 2019 13:07:56 +0000 (+0700) Subject: virt plugin: Skip 'last_update' reporting as that is not memory but timestamp X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=a073b83ade22d475828889ed8c111d133b6f63f1;p=collectd.git virt plugin: Skip 'last_update' reporting as that is not memory but timestamp --- diff --git a/src/virt.c b/src/virt.c index 9d368af6..4ec76957 100644 --- a/src/virt.c +++ b/src/virt.c @@ -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); }