projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
171d6a4
)
swap plugin: Fix a bug collecting swap I/O.
author
Florian Forster
<octo@leeloo.lan.home.verplant.org>
Tue, 23 Nov 2010 17:45:49 +0000
(18:45 +0100)
committer
Florian Forster
<octo@leeloo.lan.home.verplant.org>
Tue, 23 Nov 2010 17:45:49 +0000
(18:45 +0100)
src/swap.c
patch
|
blob
|
history
diff --git
a/src/swap.c
b/src/swap.c
index
60ede04
..
46ba665
100644
(file)
--- a/
src/swap.c
+++ b/
src/swap.c
@@
-259,7
+259,7
@@
static int swap_read (void)
if (numfields != 2)
continue;
- if (strcasecmp ("pswpin", fields[0])
!
= 0)
+ if (strcasecmp ("pswpin", fields[0])
=
= 0)
strtoderive (fields[1], &swap_in);
else if (strcasecmp ("pswpout", fields[0]) == 0)
strtoderive (fields[1], &swap_out);