summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: b10e5d8)
raw | patch | inline | side by side (parent: b10e5d8)
author | Simon Kuhnle <simon@blarzwurst.de> | |
Mon, 16 Feb 2009 11:00:35 +0000 (12:00 +0100) | ||
committer | Florian Forster <octo@leeloo.lan.home.verplant.org> | |
Mon, 16 Feb 2009 11:00:35 +0000 (12:00 +0100) |
src/swap.c | patch | blob | history |
diff --git a/src/swap.c b/src/swap.c
index 425742e9ef24f33749503aa9a953976cc897d4d6..24289abd2cbd93612921e82d828dedd46ba19604 100644 (file)
--- a/src/swap.c
+++ b/src/swap.c
}
status = swapctl (SWAP_STATS, swap_entries, swap_num);
- if (status != swap_entries)
+ if (status != swap_num)
{
ERROR ("swap plugin: swapctl (SWAP_STATS) failed with status %i.",
status);
# define C_SWAP_BLOCK_SIZE 512
#endif
- for (i = 0; i < swap_entries; i++)
+ for (i = 0; i < swap_num; i++)
{
if ((swap_entries[i].se_flags & SWF_ENABLE) == 0)
continue;