diff options
author | Daniel Lange <DLange@git.local> | 2020-10-20 10:17:58 +0200 |
---|---|---|
committer | Daniel Lange <DLange@git.local> | 2020-10-20 10:17:58 +0200 |
commit | 9f1a9ab2c2d5984887f5b821afd34a8480790877 (patch) | |
tree | 940c5d8efa9a5c8d4db2407f10359a4ea6fb50a5 /freebsd | |
parent | a0fb6e34f9e2dd83f535f3058f1a358637773298 (diff) | |
parent | 96e2a4259eb0cdf279b83d899f805d274d13a94f (diff) |
Merge branch 'header_pause' of cgzones/htop
Continue to update generic data in paused mode
Diffstat (limited to 'freebsd')
-rw-r--r-- | freebsd/FreeBSDProcessList.c | 6 | ||||
-rw-r--r-- | freebsd/FreeBSDProcessList.h | 2 |
2 files changed, 6 insertions, 2 deletions
diff --git a/freebsd/FreeBSDProcessList.c b/freebsd/FreeBSDProcessList.c index b13b217b..c8057060 100644 --- a/freebsd/FreeBSDProcessList.c +++ b/freebsd/FreeBSDProcessList.c @@ -380,7 +380,7 @@ IGNORE_WCASTQUAL_END return jname; } -void ProcessList_goThroughEntries(ProcessList* this) { +void ProcessList_goThroughEntries(ProcessList* this, bool pauseProcessUpdate) { FreeBSDProcessList* fpl = (FreeBSDProcessList*) this; Settings* settings = this->settings; bool hideKernelThreads = settings->hideKernelThreads; @@ -390,6 +390,10 @@ void ProcessList_goThroughEntries(ProcessList* this) { FreeBSDProcessList_scanMemoryInfo(this); FreeBSDProcessList_scanCPUTime(this); + // in pause mode only gather global data for meters (CPU/memory/...) + if (pauseProcessUpdate) + return; + int count = 0; struct kinfo_proc* kprocs = kvm_getprocs(fpl->kd, KERN_PROC_PROC, 0, &count); diff --git a/freebsd/FreeBSDProcessList.h b/freebsd/FreeBSDProcessList.h index 75f71c12..c5866334 100644 --- a/freebsd/FreeBSDProcessList.h +++ b/freebsd/FreeBSDProcessList.h @@ -62,6 +62,6 @@ char* FreeBSDProcessList_readProcessName(kvm_t* kd, struct kinfo_proc* kproc, in char* FreeBSDProcessList_readJailName(struct kinfo_proc* kproc); -void ProcessList_goThroughEntries(ProcessList* this); +void ProcessList_goThroughEntries(ProcessList* this, bool pauseProcessUpdate); #endif |