summaryrefslogtreecommitdiffstats
path: root/dragonflybsd
diff options
context:
space:
mode:
authorDaniel Lange <DLange@git.local>2020-10-20 10:17:58 +0200
committerDaniel Lange <DLange@git.local>2020-10-20 10:17:58 +0200
commit9f1a9ab2c2d5984887f5b821afd34a8480790877 (patch)
tree940c5d8efa9a5c8d4db2407f10359a4ea6fb50a5 /dragonflybsd
parenta0fb6e34f9e2dd83f535f3058f1a358637773298 (diff)
parent96e2a4259eb0cdf279b83d899f805d274d13a94f (diff)
Merge branch 'header_pause' of cgzones/htop
Continue to update generic data in paused mode
Diffstat (limited to 'dragonflybsd')
-rw-r--r--dragonflybsd/DragonFlyBSDProcessList.c6
-rw-r--r--dragonflybsd/DragonFlyBSDProcessList.h2
2 files changed, 6 insertions, 2 deletions
diff --git a/dragonflybsd/DragonFlyBSDProcessList.c b/dragonflybsd/DragonFlyBSDProcessList.c
index 0792c75b..73ef025a 100644
--- a/dragonflybsd/DragonFlyBSDProcessList.c
+++ b/dragonflybsd/DragonFlyBSDProcessList.c
@@ -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
diff --git a/dragonflybsd/DragonFlyBSDProcessList.h b/dragonflybsd/DragonFlyBSDProcessList.h
index f35e60eb..47531297 100644
--- a/dragonflybsd/DragonFlyBSDProcessList.h
+++ b/dragonflybsd/DragonFlyBSDProcessList.h
@@ -59,6 +59,6 @@ char* DragonFlyBSDProcessList_readProcessName(kvm_t* kd, struct kinfo_proc* kpro
char* DragonFlyBSDProcessList_readJailName(DragonFlyBSDProcessList* dfpl, int jailid);
-void ProcessList_goThroughEntries(ProcessList* this);
+void ProcessList_goThroughEntries(ProcessList* this, pauseProcessUpdate);
#endif

© 2014-2024 Faster IT GmbH | imprint | privacy policy