X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fprocesses.c;h=0c24cb70bb5a83f72543c949a0f37e021cf5280c;hb=ba2ee9aec4c0454eed8f29b4c6ce96c6fc372346;hp=72442f093f080b1aae99d99f6eb5f54443e48875;hpb=cf9ac771ade7c5ba75ab13d2b4f2482983994840;p=collectd.git diff --git a/src/processes.c b/src/processes.c index 72442f09..0c24cb70 100644 --- 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 ppid; 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); - ppid = atoi (fields[3]); *state = fields[2][0];