Merge branch 'hili-new-old' of adsr/htop into highlight-new-old-processes

This commit is contained in:
Daniel Lange
2020-11-16 12:13:47 +01:00
14 changed files with 166 additions and 37 deletions

View File

@ -102,6 +102,7 @@ static void checkRecalculation(ScreenManager* this, double* oldTime, int* sortTi
struct timeval tv;
gettimeofday(&tv, NULL);
double newTime = ((double)tv.tv_sec * 10) + ((double)tv.tv_usec / 100000);
*timedOut = (newTime - *oldTime > this->settings->delay);
*rescan |= *timedOut;