X-Git-Url: https://git.octo.it/?p=collectd.git;a=blobdiff_plain;f=src%2Fprocesses.c;h=30c4954a97c330dc723b6ef53a420e537744408e;hp=339c4d1e12f4814daedc6e150647b8ded4f8e73b;hb=22813e1a6a3d059efc67975893df985052661a7a;hpb=161388c36cb939d4ea2e33614103208b57bcfd15 diff --git a/src/processes.c b/src/processes.c index 339c4d1e..30c4954a 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,