Partial revert of
1f0156c, which broke the build on Solaris and OpenBSD.
The context-switch reporting code is only part of master at the moment.
Fixes: #1674
pse.io_syscr = -1;
pse.io_syscw = -1;
- pse.cswitch_vol = -1;
- pse.cswitch_invol = -1;
-
ps_list_add (procs[i].p_comm, have_cmdline ? cmdline : NULL, &pse);
switch (procs[i].p_stat)
pse.io_syscr = ps.io_syscr;
pse.io_syscw = ps.io_syscw;
- pse.cswitch_vol = -1;
- pse.cswitch_invol = -1;
-
switch (state)
{
case 'R': running++; break;