Christian Göttsche
fa002c0ba9
Rename virtual memory column from M_SIZE to M_VIRT
...
Closes : #325
5 years ago
Christian Göttsche
3e5cba91ce
LinuxProcess: mark LinuxProcess_printDelay static
5 years ago
Christian Göttsche
7cf5277594
IWYU update (Linux)
5 years ago
Christian Göttsche
0a2105eb22
Spelling corrections
5 years ago
Nathan Scott
0eb3c7589d
Merge individual Battery.[ch] files into Platform.[ch]
...
Small changes from review - keep headers sorted and keep local
variable declarations at the top of source files.
5 years ago
Nathan Scott
ea9622b8c9
Merge individual Battery.[ch] files into Platform.[ch]
...
Consistent with everything else involving platform-specific
calls from core htop code.
5 years ago
Christian Göttsche
f38af725c2
Silence theoretical memory leak
...
In practice systemctl should never return multiple SystemState= lines.
5 years ago
Christian Göttsche
15eab2012d
Add process column for normalized CPU usage
...
Shows the process CPU usage divided by the number of CPU cores
5 years ago
Christian Göttsche
1b225cd7a0
Show CPU temperature in CPU meter
...
Show the CPU temperature in the CPU meter, like CPU frequency, instead
of using an extra Meter.
5 years ago
Christian Göttsche
0411fdbcef
Use spaceship comparison for TTYs
5 years ago
Christian Göttsche
f856fe6463
Early skip non-directories when searching for process information
5 years ago
Christian Göttsche
ad72b747fa
Drop hideThreads Setting
...
It is only used to read process directories on RedHat beginning with a dot.
Unconditionally accept directories with a starting dot.
5 years ago
Christian Göttsche
9f67b95308
Mark local functions static
5 years ago
Christian Göttsche
397b5c4bd0
Introduce spaceship comparison for Processes
...
If currently two unsigned values are compared via `a - b`, in the case b
is actually bigger than a, the result will not be an negative number (as
-1 is expected) but a huge positive number as the subtraction is an
unsigned subtraction.
Avoid over-/underflow affected operations; use comparisons.
Modern compilers will generate sane code, like:
xor eax, eax
cmp rdi, rsi
seta al
sbb eax, 0
ret
5 years ago
Daniel Lange
da2dcf9505
Remove duplicate test for NUL
...
Fixes #308 , thanks @qarmin (Rafał Mikrut)
5 years ago
Benny Baumann
d431786fca
Split data array for file lock information into separate fields
5 years ago
Benny Baumann
18763051a2
Split platform dependent parts for file locks screen
5 years ago
Benny Baumann
2d6da2e520
Add compat wrapper for readlinkat
5 years ago
Fynn Wulf
84dad4c38e
Implement screen for active file locks
5 years ago
Benny Baumann
e7b95feee4
Remove unnecessary braces
5 years ago
Benny Baumann
0e922d4085
Integrate NAN check into assignment
...
The check for NAN is kept to avoid relying on implementation details of the CLAMP macro/function
5 years ago
Benny Baumann
0d64ca9262
Wrap inline structure definitions
5 years ago
Benny Baumann
45869513bf
Embracing branches
5 years ago
Benny Baumann
61e14d4bb2
Spacing around operators
5 years ago
Benny Baumann
b23f8235e2
Whitespace and indentation issues
5 years ago
Benny Baumann
9a16b1079e
Make scope of match macro symmetric
5 years ago
Benny Baumann
493217e814
Fix indentation to 3 spaces
5 years ago
Benny Baumann
adf797c295
Spacing after keywords (for)
5 years ago
Benny Baumann
374edb9ed5
Spacing after keywords (if)
5 years ago
Benny Baumann
0a51eae11f
Spacing after keywords (while)
5 years ago
Benny Baumann
c790b6ae67
Remove accidental syntax collision
5 years ago
Benny Baumann
7ab0915a6c
Remove unnecessary trailing semicolon on macros
5 years ago
Christian Göttsche
15652e7b81
Enclose macro arguments in parentheses
5 years ago
Christian Göttsche
2a9e8ca074
Add SystemdMeter
5 years ago
Murloc Knight
ab17ef4dc0
Zram Meter feature
5 years ago
Christian Goettsche
c2fdfd99eb
FreeBSD: implement Platform_getDiskIO()
5 years ago
Christian Göttsche
76797f8d92
Implement Process_isUserlandThread as function
...
Make it more readable and fix unenclosed macro arguments
5 years ago
Christian Göttsche
d33b2be2ca
Implement LinuxProcess_effectiveIOPriority as function
...
Make it more readable and fix unenclosed macro arguments
5 years ago
Christian Göttsche
8c1f5c5a6f
Enclose macro arguments in parentheses
5 years ago
Benny Baumann
cf1a9ec180
Refactor LinuxProcessList_readSmapsFile to work line-oriented
5 years ago
Christian Göttsche
ac2b07eddd
Avoid some unnecessary casts and mark some not changing variables const
5 years ago
Christian Göttsche
27870bd4de
Drop unneeded variablw initialization and reduce scope
5 years ago
Benny Baumann
c98d4577c9
Refactor code for reading process environment from procfs
5 years ago
Christian Göttsche
a3bb7cbe64
Hold only a const version of Settings in ProcessList
5 years ago
Christian Göttsche
4eb443926f
Hold only a const version of Settings in Process
5 years ago
Christian Göttsche
7109172431
Mark process parameter of Process_writeField consistently const
5 years ago
Christian Göttsche
72103e9613
Hold only a const version of the ProcessList in Meters
5 years ago
Christian Göttsche
f757810f48
Improve handling of no data in Disk and Network IO Meters
5 years ago
Jan Palus
167adc0a2b
Parse POWER_SUPPLY_CAPACITY
...
If POWER_SUPPLY_{CHARGE,ENERGY}_NOW is missing then try to use
POWER_SUPPLY_CAPACITY to determine current charge level.
5 years ago
Christian Göttsche
e12d48a661
Fix wrong strncmp replacement
...
Fixes 4c66eb6d4c
5 years ago