projects
/
collectd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'collectd-4.10' into collectd-5.0
[collectd.git]
/
src
/
processes.c
diff --git
a/src/processes.c
b/src/processes.c
index
72442f0
..
0c24cb7
100644
(file)
--- a/
src/processes.c
+++ b/
src/processes.c
@@
-871,7
+871,6
@@
int ps_read_process (int pid, procstat_t *ps, char *state)
int i;
int i;
- int ppid;
int name_len;
derive_t cpu_user_counter;
int name_len;
derive_t cpu_user_counter;
@@
-909,7
+908,6
@@
int ps_read_process (int pid, procstat_t *ps, char *state)
fields[1][name_len] = '\0';
strncpy (ps->name, fields[1], PROCSTAT_NAME_LEN);
fields[1][name_len] = '\0';
strncpy (ps->name, fields[1], PROCSTAT_NAME_LEN);
- ppid = atoi (fields[3]);
*state = fields[2][0];
*state = fields[2][0];