Merge branch 'header_pause' of cgzones/htop

Continue to update generic data in paused mode
This commit is contained in:
Daniel Lange
2020-10-20 10:17:58 +02:00
18 changed files with 61 additions and 24 deletions

View File

@ -360,7 +360,7 @@ char* DragonFlyBSDProcessList_readJailName(DragonFlyBSDProcessList* dfpl, int ja
return jname;
}
void ProcessList_goThroughEntries(ProcessList* this) {
void ProcessList_goThroughEntries(ProcessList* this, bool pauseProcessUpdate) {
DragonFlyBSDProcessList* dfpl = (DragonFlyBSDProcessList*) this;
Settings* settings = this->settings;
bool hideKernelThreads = settings->hideKernelThreads;
@ -370,6 +370,10 @@ void ProcessList_goThroughEntries(ProcessList* this) {
DragonFlyBSDProcessList_scanCPUTime(this);
DragonFlyBSDProcessList_scanJails(dfpl);
// in pause mode only gather global data for meters (CPU/memory/...)
if (pauseProcessUpdate)
return;
int count = 0;
// TODO Kernel Threads seem to be skipped, need to figure out the correct flag