diff options
author | Benny Baumann <BenBE@geshi.org> | 2022-02-27 20:29:40 +0100 |
---|---|---|
committer | BenBE <BenBE@geshi.org> | 2022-03-06 19:56:25 +0100 |
commit | edf319e53d1fb77546505e238d75160a3febe56e (patch) | |
tree | c735eef42730d65228958c2e104817ae7362e614 /dragonflybsd/DragonFlyBSDProcessList.c | |
parent | b6c0667eae104521e71ab9c4f4a785e386bce3e5 (diff) |
Auto-size (normalized) CPU usage columns
Diffstat (limited to 'dragonflybsd/DragonFlyBSDProcessList.c')
-rw-r--r-- | dragonflybsd/DragonFlyBSDProcessList.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/dragonflybsd/DragonFlyBSDProcessList.c b/dragonflybsd/DragonFlyBSDProcessList.c index 1dec068f..0d0e1a4b 100644 --- a/dragonflybsd/DragonFlyBSDProcessList.c +++ b/dragonflybsd/DragonFlyBSDProcessList.c @@ -513,6 +513,7 @@ void ProcessList_goThroughEntries(ProcessList* super, bool pauseProcessUpdate) { proc->percent_cpu = 100.0 * ((double)kproc->kp_lwp.kl_pctcpu / (double)kernelFScale); proc->percent_mem = 100.0 * proc->m_resident / (double)(super->totalMem); + Process_updateCPUFieldWidths(proc->percent_cpu); if (proc->percent_cpu > 0.1) { // system idle process should own all CPU time left regardless of CPU count |