Christian Goettsche
f5c3349bdb
IWYU update (FreeBSD)
5 years ago
Christian Göttsche
7cf5277594
IWYU update (Linux)
5 years ago
Nathan Scott
329011bb98
Add missing OpenBSD battery function declaration
5 years ago
Christian Göttsche
0a2105eb22
Spelling corrections
5 years ago
Christian Göttsche
f720868998
Align command line argument descriptions in help output
...
Also drop #link comment
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
e3af8d0d08
DarwinProcessList: mark local functions static and sort includes
5 years ago
Christian Göttsche
ba2d59020d
DarwinProcess: mark local function static and sort includes
5 years ago
Christian Göttsche
b3b890f546
Use 0 as no-match value for sortkey
...
Field numbers start at 1, and using -1 as no-match special value triggers
static analyzers using a potential negative array access.
5 years ago
Christian Göttsche
f38af725c2
Silence theoretical memory leak
...
In practice systemctl should never return multiple SystemState= lines.
5 years ago
Daniel Lange
fec9af4e6f
Merge branch 'temperature_v2' of cgzones/htop
...
Closes #111 , closes #49
Closes #93 - thank you for leading the way @DX37 (Maxim Kurnosenko)!
5 years ago
Benny Baumann
a94fd87b05
Avoid calling Object_isA from inside Vector_isConsistent
5 years ago
Christian Göttsche
307c34b028
Hashtable: use dynamic growth and use primes as size
...
Dynamically increase the hashmap size to not exceed the load factor and
avoid too long chains.
Switch from Separate Chaining to Robin Hood linear probing to improve
cache locality.
Use primes as size to further avoid collisions.
E.g. on a standard kde system the number of entries in the ProcessTable
might be around 650.
5 years ago
Christian Göttsche
7914ec201e
Hashtable update
...
- use consistent type for key by introducing a new typedef
- use unsigned types for sizes
- name parameters in foreach function typedef
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
Daniel Lange
a8a723ffe9
Add debug state to the configure report (thanks @benbe for the idea)
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
Daniel Lange
309f1d7282
hwloc = (portable) HardWare LOCality, not related to lock
5 years ago
Daniel Lange
8bc083c6c6
Merge branch 'highlight-new-old-processes'
...
Thanks to @adsr for the great work
Closes #241 , closes #74
Massive rebase, so #keepfingerscrossed
5 years ago
Daniel Lange
19868a3c29
Fix whitespace before comma in the new color definitions
5 years ago
Daniel Lange
8f2d129dce
Apply patch from BenBE as per https://github.com/htop-dev/htop/pull/241#issuecomment-720081138
5 years ago
Daniel Lange
0951090fa4
Merge branch 'hili-new-old' of adsr/htop into highlight-new-old-processes
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
91317322fe
Mark ProcessList_keyAt argument const
5 years ago
Christian Göttsche
42073babb9
Use uid_t type for Process_getuid
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
Christian Göttsche
d785b1bbc3
Fixup of SystemdMeter merge
5 years ago
Daniel Lange
f2b2735e07
Resolve merge conflicts, merge #229 "Add SystemdMeter" from @cgzones
5 years ago
Daniel Lange
bb908f3dc4
Resolve merge conflicts, merge #298 "Macro cleanup" from @BenBE
5 years ago
Daniel Lange
da2dcf9505
Remove duplicate test for NUL
...
Fixes #308 , thanks @qarmin (Rafał Mikrut)
5 years ago
BenBE
9e976b899b
Merge pull request #239 from StoneBam/list-locks
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
cb8bb12974
Shorten initializer
5 years ago
Benny Baumann
1c060a9d6b
Avoid RichString_beginAllocated being ammendable
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