From: Florian Forster Date: Fri, 9 Jul 2010 09:58:28 +0000 (+0200) Subject: swap plugin: Multiply swap sizes by 1024. X-Git-Tag: collectd-4.10.1~1 X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=5ee497d4d3e9168d502686c087c92a416a3cbb99;p=collectd.git swap plugin: Multiply swap sizes by 1024. This fixes a regression introduced in 6a3935d. --- diff --git a/src/swap.c b/src/swap.c index 68a5b71c..60ede04b 100644 --- a/src/swap.c +++ b/src/swap.c @@ -284,10 +284,10 @@ static int swap_read (void) sstrerror (errno, errbuf, sizeof (errbuf))); } - swap_submit ("used", swap_used, DS_TYPE_GAUGE); - swap_submit ("free", swap_free, DS_TYPE_GAUGE); - swap_submit ("cached", swap_cached, DS_TYPE_GAUGE); - swap_submit ("in", swap_in, DS_TYPE_DERIVE); + swap_submit ("used", 1024 * swap_used, DS_TYPE_GAUGE); + swap_submit ("free", 1024 * swap_free, DS_TYPE_GAUGE); + swap_submit ("cached", 1024 * swap_cached, DS_TYPE_GAUGE); + swap_submit ("in", swap_in, DS_TYPE_DERIVE); swap_submit ("out", swap_out, DS_TYPE_DERIVE); /* #endif KERNEL_LINUX */