summaryrefslogtreecommitdiffstats
path: root/ScreenManager.c
diff options
context:
space:
mode:
Diffstat (limited to 'ScreenManager.c')
-rw-r--r--ScreenManager.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/ScreenManager.c b/ScreenManager.c
index c4fbfeee..17a76bf3 100644
--- a/ScreenManager.c
+++ b/ScreenManager.c
@@ -105,9 +105,10 @@ static void checkRecalculation(ScreenManager* this, double* oldTime, int* sortTi
if (*rescan) {
*oldTime = newTime;
+ // scan processes first - some header values are calculated there
+ ProcessList_scan(pl, this->state->pauseProcessUpdate);
// always update header, especially to avoid gaps in graph meters
Header_updateData(this->header);
- ProcessList_scan(pl, this->state->pauseProcessUpdate);
if (!this->state->pauseProcessUpdate && (*sortTimeout == 0 || this->settings->treeView)) {
ProcessList_sort(pl);
*sortTimeout = 1;