projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dfb1782
)
virt plugin: Skip 'last_update' reporting as that is not memory but timestamp
author
Pavel Rochnyack
<pavel2000@ngs.ru>
Sun, 12 May 2019 13:07:56 +0000
(20:07 +0700)
committer
Pavel Rochnyack
<pavel2000@ngs.ru>
Sun, 12 May 2019 18:47:49 +0000
(
01:47
+0700)
src/virt.c
patch
|
blob
|
history
diff --git
a/src/virt.c
b/src/virt.c
index
9d368af
..
4ec7695
100644
(file)
--- 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);
}