summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: f6d2b3c)
raw | patch | inline | side by side (parent: f6d2b3c)
author | Florian Forster <octo@leeloo.lan.home.verplant.org> | |
Fri, 9 Jul 2010 09:58:28 +0000 (11:58 +0200) | ||
committer | Florian Forster <octo@leeloo.lan.home.verplant.org> | |
Fri, 9 Jul 2010 09:58:28 +0000 (11:58 +0200) |
src/swap.c | patch | blob | history |
diff --git a/src/swap.c b/src/swap.c
index 68a5b71c84cfbbfee5e7a746115417c6ffc44a0e..60ede04bdce0fd186ee31b7cdd641f5ad236317d 100644 (file)
--- a/src/swap.c
+++ b/src/swap.c
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 */