From e896272076a377c1a401e0237e182b689f819cf7 Mon Sep 17 00:00:00 2001 From: Florian Forster Date: Fri, 17 Nov 2017 17:11:32 +0100 Subject: [PATCH] processes plugin: Fix check for context switch counters. CID: 179230 --- src/processes.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/processes.c b/src/processes.c index 89cf3e0e..f5569123 100644 --- a/src/processes.c +++ b/src/processes.c @@ -502,7 +502,7 @@ static void ps_list_add(const char *name, const char *cmdline, ps_update_counter(&ps->io_diskw, &pse->io_diskw, entry->io_diskw); } - if ((entry->cswitch_vol != -1) && (entry->cswitch_vol != -1)) { + if ((entry->cswitch_vol != -1) && (entry->cswitch_invol != -1)) { ps_update_counter(&ps->cswitch_vol, &pse->cswitch_vol, entry->cswitch_vol); ps_update_counter(&ps->cswitch_invol, &pse->cswitch_invol, -- 2.30.2