projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b10e5d8
)
swap plugin: Fix two typos in the *BSD code.
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
425742e
..
24289ab
100644
(file)
--- a/
src/swap.c
+++ b/
src/swap.c
@@
-289,7
+289,7
@@
static int swap_read (void)
}
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);
@@
-303,7
+303,7
@@
static int swap_read (void)
# 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;