projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
51d2997
)
processes plugin: Fix broken compilation on AIX
author
Pavel Rochnyack
<pavel2000@ngs.ru>
Thu, 9 Mar 2017 17:57:41 +0000
(23:57 +0600)
committer
Pavel 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
patch
|
blob
|
history
diff --git
a/src/processes.c
b/src/processes.c
index
86f690f
..
87c96c8
100644
(file)
--- 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;