summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 6597f3a)
raw | patch | inline | side by side (parent: 6597f3a)
author | Simon Kuhnle <simon@blarzwurst.de> | |
Mon, 16 Feb 2009 12:06:06 +0000 (13:06 +0100) | ||
committer | Florian Forster <octo@leeloo.lan.home.verplant.org> | |
Mon, 16 Feb 2009 12:06:06 +0000 (13:06 +0100) |
src/swap.c | patch | blob | history |
diff --git a/src/swap.c b/src/swap.c
index 24289abd2cbd93612921e82d828dedd46ba19604..bcfe4a2228408ac7327fcc860523ae89f5a467e2 100644 (file)
--- a/src/swap.c
+++ b/src/swap.c
if ((swap_entries[i].se_flags & SWF_ENABLE) == 0)
continue;
- used = swap_entries[i].se_inuse * C_SWAP_BLOCK_SIZE;
- total = swap_entries[i].se_nblks * C_SWAP_BLOCK_SIZE;
+ used += swap_entries[i].se_inuse * C_SWAP_BLOCK_SIZE;
+ total += swap_entries[i].se_nblks * C_SWAP_BLOCK_SIZE;
}
swap_submit ("used", (gauge_t) used);