From: Zollner Robert Date: Thu, 11 Dec 2014 00:18:31 +0000 (+0200) Subject: virt plugin: Fix memory stats to use the same units X-Git-Tag: collectd-5.5.0~103^2 X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=1aebd82fd67090823b1ee49b4bdc4ca7ec9a9b17;p=collectd.git virt plugin: Fix memory stats to use the same units memory_submit and memory_stats_submit should use same units "Bytes" - Fixes: #856 --- diff --git a/src/virt.c b/src/virt.c index 6118c0fd..5f87625a 100644 --- a/src/virt.c +++ b/src/virt.c @@ -588,7 +588,7 @@ lv_read (void) } for (j = 0; j < status; j++) { - memory_stats_submit ((gauge_t) minfo[j].val, domains[i], minfo[j].tag); + memory_stats_submit ((gauge_t) minfo[j].val * 1024, domains[i], minfo[j].tag); } sfree (minfo);