Code

processes plugin: Fix broken compilation on AIX
authorPavel Rochnyack <pavel2000@ngs.ru>
Thu, 9 Mar 2017 17:57:41 +0000 (23:57 +0600)
committerPavel Rochnyack <pavel2000@ngs.ru>
Thu, 9 Mar 2017 18:06:11 +0000 (00:06 +0600)
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
src/processes.c

index 86f690f3e85f2206bf4cc7505e5c6afdccf4d37d..87c96c880b214123fb020e4b11d95bc233bec358 100644 (file)
@@ -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;