Linux: recalculate LRS value

The LRS value is only zero in the first cycle; drop the check to
recalculate while running.
This commit is contained in:
Christian Göttsche 2021-09-12 18:07:50 +02:00 committed by BenBE
parent 3869c43393
commit 3c8d586a1c
1 changed files with 1 additions and 1 deletions

View File

@ -1423,7 +1423,7 @@ static bool LinuxProcessList_recurseProcTree(LinuxProcessList* this, openat_arg_
{
bool prev = proc->usesDeletedLib;
if ((lp->m_lrs == 0 && (settings->flags & PROCESS_FLAG_LINUX_LRS_FIX)) ||
if ((settings->flags & PROCESS_FLAG_LINUX_LRS_FIX) ||
(settings->highlightDeletedExe && !proc->procExeDeleted && !proc->isKernelThread && !proc->isUserlandThread)) {
// Check if we really should recalculate the M_LRS value for this process
uint64_t passedTimeInMs = pl->realtimeMs - lp->last_mlrs_calctime;