projects
/
collectd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Don't divide by 0 when doing percentages (e.g. with the swap plugin).
[collectd.git]
/
src
/
processes.c
diff --git
a/src/processes.c
b/src/processes.c
index
e437209
..
09e24d2
100644
(file)
--- a/
src/processes.c
+++ b/
src/processes.c
@@
-1018,7
+1018,7
@@
int ps_read_process (int pid, procstat_t *ps, char *state)
/* Leave the rest at zero if this is only a zombi */
if (ps->num_proc == 0)
{
- DEBUG ("processes plugin: This is only a zombi: pid = %i; "
+ DEBUG ("processes plugin: This is only a zombi
e
: pid = %i; "
"name = %s;", pid, ps->name);
return (0);
}