summaryrefslogtreecommitdiffstats
path: root/pcp
diff options
context:
space:
mode:
authorBenny Baumann <BenBE@geshi.org>2021-06-18 20:42:54 +0200
committerBenBE <BenBE@geshi.org>2021-06-22 09:32:11 +0200
commit1c0bd5155f6e550d7685932ff84390668d1acf11 (patch)
treeeb108e92057d85ae5002af331f90f1e55f2ebd59 /pcp
parentd2a476cddb009f98bd709bbbfe335a08e4820bce (diff)
PCP: Always update username
Diffstat (limited to 'pcp')
-rw-r--r--pcp/PCPProcessList.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/pcp/PCPProcessList.c b/pcp/PCPProcessList.c
index b479ce67..f544fd71 100644
--- a/pcp/PCPProcessList.c
+++ b/pcp/PCPProcessList.c
@@ -374,8 +374,9 @@ static bool PCPProcessList_updateProcesses(PCPProcessList* this, double period,
0.0 : CLAMP(percent_cpu, 0.0, pl->cpuCount * 100.0);
proc->percent_mem = proc->m_resident / (double)pl->totalMem * 100.0;
+ PCPProcessList_updateUsername(proc, pid, offset, pl->usersTable);
+
if (!preExisting) {
- PCPProcessList_updateUsername(proc, pid, offset, pl->usersTable);
PCPProcessList_updateCmdline(proc, pid, offset, command);
Process_fillStarttimeBuffer(proc);
ProcessList_add(pl, proc);

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