PCP: Always update username

This commit is contained in:
Benny Baumann 2021-06-18 20:42:54 +02:00 committed by BenBE
parent d2a476cddb
commit 1c0bd5155f
1 changed files with 2 additions and 1 deletions

View File

@ -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);