htop/linux
Christian Göttsche 0cfc9b0980 LinuxProcessList: refactor /proc/stat parsing
Combine reading CPU count and CPU usage, only open the file once.
Do not separately initialize totalPeriod and totalTime, cause the value
0 is handled in Platform_setCPUValues().

Take the number of currently running process from the entry
procs_running in /proc/stat instead of counting all scanned process
with state 'R', to include hidden tasks, e.g. threads.
2021-03-12 17:31:45 +01:00
..
HugePageMeter.c Save text buffer in Meter 2021-03-04 23:57:45 +01:00
HugePageMeter.h Linux: handle hugepages 2021-01-19 18:06:48 +01:00
IOPriority.h Enclose macro arguments in parentheses 2020-10-28 19:57:10 +01:00
IOPriorityPanel.c Panel_new: reorder arguments 2021-01-04 23:12:43 +01:00
IOPriorityPanel.h Make all required includes explicit 2020-10-18 20:09:05 +02:00
LibSensors.c Add configure option to create static htop binary 2021-01-25 18:01:39 +01:00
LibSensors.h Handle absence of package CPU temperature 2020-12-14 21:07:07 +01:00
LinuxProcess.c LinuxProcess: Drop dead assignment 2021-03-02 22:37:47 +01:00
LinuxProcess.h Fix a couple of small spelling mistakes in comments 2021-02-15 12:54:20 +11:00
LinuxProcessList.c LinuxProcessList: refactor /proc/stat parsing 2021-03-12 17:31:45 +01:00
LinuxProcessList.h Linux: overhaul memory partition 2021-02-07 12:41:52 +01:00
Platform.c Merge pull request #550 from natoscott/diskio-types 2021-03-02 13:34:52 +11:00
Platform.h Fix include file ordering of generic headers 2021-03-04 13:44:40 +11:00
PressureStallMeter.c Save text buffer in Meter 2021-03-04 23:57:45 +01:00
PressureStallMeter.h Mark remaining classes const 2020-10-13 14:56:01 +02:00
ProcessField.h Rework enum ProcessField 2020-12-19 21:13:32 +01:00
SELinuxMeter.c Save text buffer in Meter 2021-03-04 23:57:45 +01:00
SELinuxMeter.h Convert personal copyright authorship to team 2020-12-04 13:55:55 +01:00
SystemdMeter.c Save text buffer in Meter 2021-03-04 23:57:45 +01:00
SystemdMeter.h Convert personal copyright authorship to team 2020-12-04 13:55:55 +01:00
ZramMeter.c Save text buffer in Meter 2021-03-04 23:57:45 +01:00
ZramMeter.h Zram Meter feature 2020-10-31 18:51:53 +01:00
ZramStats.h Linux: overhaul memory partition 2021-02-07 12:41:52 +01:00