From: Florian Forster Date: Tue, 23 Nov 2010 17:45:49 +0000 (+0100) Subject: swap plugin: Fix a bug collecting swap I/O. X-Git-Tag: collectd-4.10.2~2 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=69395dbecda0e01df70b69a61f72d12a897037d9;p=collectd.git swap plugin: Fix a bug collecting swap I/O. --- diff --git a/src/swap.c b/src/swap.c index 60ede04b..46ba6652 100644 --- 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);