Merge pull request #2210 from rpv-tomsk/processes-fix-init
authorRuben Kerkhof <ruben@rubenkerkhof.com>
Fri, 10 Mar 2017 14:36:09 +0000 (15:36 +0100)
committerGitHub <noreply@github.com>
Fri, 10 Mar 2017 14:36:09 +0000 (15:36 +0100)
processes plugin: Fix broken compilation on AIX

src/processes.c

index 86f690f..87c96c8 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;