From: Pavel Rochnyack Date: Thu, 9 Mar 2017 17:57:41 +0000 (+0600) Subject: processes plugin: Fix broken compilation on AIX X-Git-Tag: collectd-5.7.2~11^2 X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=a2c3d69ed4116206ca4fd67133dd52028a5ff29a;p=collectd.git processes plugin: Fix broken compilation on AIX After a bb0000acfc57e230fc1c26099bc7acb913680f1a an extra pse.cpu_system statement was left in the AIX / elif HAVE_PROCINFO_H section, which caused the compilation to fail. Fixes: #1981 --- diff --git a/src/processes.c b/src/processes.c index 86f690f3..87c96c88 100644 --- a/src/processes.c +++ b/src/processes.c @@ -2127,7 +2127,6 @@ static int ps_read(void) { pse.cpu_user_counter = procentry[i].pi_ru.ru_utime.tv_sec * 1000000 + procentry[i].pi_ru.ru_utime.tv_usec / 1000; - pse.cpu_system = 0; /* tv_usec is nanosec ??? */ pse.cpu_system_counter = procentry[i].pi_ru.ru_stime.tv_sec * 1000000 + procentry[i].pi_ru.ru_stime.tv_usec / 1000;