mirror of https://github.com/xzeldon/htop.git
Avoid expensive build of tree when not using it
This commit is contained in:
parent
bd24664fc2
commit
2d874177bc
|
@ -564,6 +564,7 @@ void ProcessList_scan(ProcessList* this, bool pauseProcessUpdate) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (this->settings->treeView) {
|
||||||
// Clear out the hashtable to avoid any left-over processes from previous build
|
// Clear out the hashtable to avoid any left-over processes from previous build
|
||||||
//
|
//
|
||||||
// The sorting algorithm relies on the fact that
|
// The sorting algorithm relies on the fact that
|
||||||
|
@ -571,4 +572,5 @@ void ProcessList_scan(ProcessList* this, bool pauseProcessUpdate) {
|
||||||
Hashtable_clear(this->displayTreeSet);
|
Hashtable_clear(this->displayTreeSet);
|
||||||
|
|
||||||
ProcessList_buildTree(this);
|
ProcessList_buildTree(this);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue