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 /solaris | |
parent | a0fb6e34f9e2dd83f535f3058f1a358637773298 (diff) | |
parent | 96e2a4259eb0cdf279b83d899f805d274d13a94f (diff) |
Merge branch 'header_pause' of cgzones/htop
Continue to update generic data in paused mode
Diffstat (limited to 'solaris')
-rw-r--r-- | solaris/SolarisProcessList.c | 7 | ||||
-rw-r--r-- | solaris/SolarisProcessList.h | 2 |
2 files changed, 7 insertions, 2 deletions
diff --git a/solaris/SolarisProcessList.c b/solaris/SolarisProcessList.c index ea552841..eed4b89d 100644 --- a/solaris/SolarisProcessList.c +++ b/solaris/SolarisProcessList.c @@ -377,10 +377,15 @@ int SolarisProcessList_walkproc(psinfo_t *_psinfo, lwpsinfo_t *_lwpsinfo, void * return 0; } -void ProcessList_goThroughEntries(ProcessList* this) { +void ProcessList_goThroughEntries(ProcessList* this, bool pauseProcessUpdate) { SolarisProcessList_scanCPUTime(this); SolarisProcessList_scanMemoryInfo(this); SolarisProcessList_scanZfsArcstats(this); + + // in pause mode only gather global data for meters (CPU/memory/...) + if (pauseProcessUpdate) + return; + this->kernelThreads = 1; proc_walk(&SolarisProcessList_walkproc, this, PR_WALK_LWP); } diff --git a/solaris/SolarisProcessList.h b/solaris/SolarisProcessList.h index c8a2d8d0..a138c3bf 100644 --- a/solaris/SolarisProcessList.h +++ b/solaris/SolarisProcessList.h @@ -60,6 +60,6 @@ void ProcessList_delete(ProcessList* pl); int SolarisProcessList_walkproc(psinfo_t *_psinfo, lwpsinfo_t *_lwpsinfo, void *listptr); -void ProcessList_goThroughEntries(ProcessList* this); +void ProcessList_goThroughEntries(ProcessList* this, bool pauseProcessUpdate); #endif |