Skip to content

Commit 3c8d586

Browse files
cgzonesBenBE
authored andcommitted
Linux: recalculate LRS value
The LRS value is only zero in the first cycle; drop the check to recalculate while running.
1 parent 3869c43 commit 3c8d586

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

linux/LinuxProcessList.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1423,7 +1423,7 @@ static bool LinuxProcessList_recurseProcTree(LinuxProcessList* this, openat_arg_
14231423
{
14241424
bool prev = proc->usesDeletedLib;
14251425

1426-
if ((lp->m_lrs == 0 && (settings->flags & PROCESS_FLAG_LINUX_LRS_FIX)) ||
1426+
if ((settings->flags & PROCESS_FLAG_LINUX_LRS_FIX) ||
14271427
(settings->highlightDeletedExe && !proc->procExeDeleted && !proc->isKernelThread && !proc->isUserlandThread)) {
14281428
// Check if we really should recalculate the M_LRS value for this process
14291429
uint64_t passedTimeInMs = pl->realtimeMs - lp->last_mlrs_calctime;

0 commit comments

Comments
 (0)