Christian Göttsche
c038326a70
LinuxProcessList: fix misspelling
5 years ago
Christian Göttsche
601ad61e7d
Unify naming of first argument of Platform_getBattery
...
Use percent throughout
5 years ago
Christian Göttsche
4af8c63f63
Fix file descriptor leak in LinuxProcessList_readCmdlineFile after xread failure
...
Found by Coverity
5 years ago
Benny Baumann
21e3063e2e
Include comm before cmdline if exe could not be read, but comm mismatches basename from cmdline
...
Also highlights entries where exe was marked deleted
5 years ago
Benny Baumann
46ee28e897
Refactor command string creation
...
Hopefully this patch makes it a bit more approachable how it's done.
5 years ago
Benny Baumann
27b36dab1a
Make kernel thread display for COMM/EXE columns less visible and more consistent
5 years ago
Benny Baumann
f0a232568f
Reduce visual noise to when comm and cmdline actually disagree on the program basename
5 years ago
Narendran Gopalakrishnan
dde2af1fdb
Assume full basename matches COMM when matching full COMM buffer
5 years ago
Narendran Gopalakrishnan
be60419630
Cleanup some documentation
5 years ago
Benny Baumann
fcda517a67
Add heuristic for space-separated cmdline
5 years ago
Benny Baumann
98fce1fb43
Compatibility function for faccessat
5 years ago
Narendran Gopalakrishnan
09fe94da18
Improving Command display/sort
5 years ago
Christian Göttsche
42c842c190
LinuxProcess_adjustTime: simplify by not using double
...
Does not work with -ffast-math else.
5 years ago
Christian Göttsche
952ee9cd77
LinuxProcessList: fix misspelling
5 years ago
Christian Göttsche
6c2849ec81
Linux: fix display of new thread for one cycle when hidden
5 years ago
Christian Göttsche
17eeb7573a
LinuxProcessList: skip parsing threads if the kind of thread is disabled
5 years ago
Benny Baumann
03f9a86918
Reduce scope of local variables
5 years ago
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
Nathan Scott
5d50f43d5f
Add whitespace to improve Linux Platform_init readability
5 years ago
Nathan Scott
c75c5ef9c6
Minor cleanups to platform-specific init and done
...
Move platform-specific code out of the htop.c main function
and into the platform sub-directories - primarily this is
the Linux procfs path check and sensors setup/teardown; not
needed on any other platforms. No functional changes here.
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