summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 6213557)
raw | patch | inline | side by side (parent: 6213557)
author | Florian Forster <octo@collectd.org> | |
Thu, 11 Jun 2015 13:48:02 +0000 (14:48 +0100) | ||
committer | Florian Forster <octo@collectd.org> | |
Thu, 11 Jun 2015 13:48:02 +0000 (14:48 +0100) |
src/processes.c | patch | blob | history |
diff --git a/src/processes.c b/src/processes.c
index 0649eab285770de13bfa61060ce3ee7eaa155b10..fde96f89d245c3b79d3a6c5a5239f1d76052cae0 100644 (file)
--- a/src/processes.c
+++ b/src/processes.c
continue;
}
+ memset (&pse, 0, sizeof (pse));
pse.id = pid;
pse.age = 0;
}
} /* if (process has argument list) */
+ memset (&pse, 0, sizeof (pse));
pse.id = procs[i].p_pid;
pse.age = 0;
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);
} /* if ((proc_ptr == NULL) || (proc_ptr->p_pid != procs[i].p_pid)) */
continue;
}
+ memset (&pse, 0, sizeof (pse));
pse.id = pid;
pse.age = 0;
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;