mirror of
https://github.com/xzeldon/htop.git
synced 2024-12-24 15:15:44 +00:00
0cfc9b0980
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. |
||
---|---|---|
.. | ||
HugePageMeter.c | ||
HugePageMeter.h | ||
IOPriority.h | ||
IOPriorityPanel.c | ||
IOPriorityPanel.h | ||
LibSensors.c | ||
LibSensors.h | ||
LinuxProcess.c | ||
LinuxProcess.h | ||
LinuxProcessList.c | ||
LinuxProcessList.h | ||
Platform.c | ||
Platform.h | ||
PressureStallMeter.c | ||
PressureStallMeter.h | ||
ProcessField.h | ||
SELinuxMeter.c | ||
SELinuxMeter.h | ||
SystemdMeter.c | ||
SystemdMeter.h | ||
ZramMeter.c | ||
ZramMeter.h | ||
ZramStats.h |