From 5ee497d4d3e9168d502686c087c92a416a3cbb99 Mon Sep 17 00:00:00 2001 From: Florian Forster Date: Fri, 9 Jul 2010 11:58:28 +0200 Subject: [PATCH] swap plugin: Multiply swap sizes by 1024. This fixes a regression introduced in 6a3935d. --- src/swap.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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 */ -- 2.30.2