From 69395dbecda0e01df70b69a61f72d12a897037d9 Mon Sep 17 00:00:00 2001 From: Florian Forster Date: Tue, 23 Nov 2010 18:45:49 +0100 Subject: [PATCH] swap plugin: Fix a bug collecting swap I/O. --- src/swap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.30.2