X-Git-Url: https://git.octo.it/?p=collectd.git;a=blobdiff_plain;f=src%2Fprocesses.c;h=f556912348b04585e6d360255918382b35adab7b;hp=89cf3e0ee549437f29b489a35825896aa557d91f;hb=da11ce02eb202b3e01d3e2d1b40f248a84430973;hpb=aecd05a0a0ec4d745506a67a937de6d1d6b33db5 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,