summaryrefslogtreecommitdiffstats
path: root/pcp/PCPProcessTable.c
diff options
context:
space:
mode:
authorBenny Baumann <BenBE@geshi.org>2023-11-23 12:22:02 +0100
committerBenBE <BenBE@geshi.org>2023-12-26 15:14:19 +0100
commit6aa9ef2726e42c4ae062b55be4d5cc015767d997 (patch)
treed5bd033946b404fa99b70b0b1c560725cef302bf /pcp/PCPProcessTable.c
parenta98fc47ffe67e88b1a83f94382795b8787a9bfe8 (diff)
Fix code style
Diffstat (limited to 'pcp/PCPProcessTable.c')
-rw-r--r--pcp/PCPProcessTable.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/pcp/PCPProcessTable.c b/pcp/PCPProcessTable.c
index 07d5805d..4999bdc2 100644
--- a/pcp/PCPProcessTable.c
+++ b/pcp/PCPProcessTable.c
@@ -333,7 +333,7 @@ static void PCPProcessTable_updateCmdline(Process* process, int pid, int offset,
tokenStart = i + 1;
/* special-case arguments for problematic situations like "find /" */
if (command[i] <= ' ')
- argSepSpace = true;
+ argSepSpace = true;
}
tokenEnd = length;
if (argSepSpace)
@@ -403,10 +403,10 @@ static bool PCPProcessTable_updateProcesses(PCPProcessTable* this) {
PCPProcessTable_updateMemory(pp, pid, offset);
- if ((flags & PROCESS_FLAG_LINUX_SMAPS) &&
- (Process_isKernelThread(proc) == false)) {
- if (Metric_enabled(PCP_PROC_SMAPS_PSS))
+ if ((flags & PROCESS_FLAG_LINUX_SMAPS) && !Process_isKernelThread(proc)) {
+ if (Metric_enabled(PCP_PROC_SMAPS_PSS)) {
PCPProcessTable_updateSmaps(pp, pid, offset);
+ }
}
char command[MAX_NAME + 1];

© 2014-2024 Faster IT GmbH | imprint | privacy policy