| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
| |
This allows the markdown formatted page to be rendered correctly in
other web frontends, like cgit.
https://git.zx2c4.com/cgit/about/
|
|
|
|
| |
These should not kill the application.
|
| |
|
|
|
|
| |
[ci skip]
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
Addresses #1408
|
|
|
|
|
|
| |
Instead of ignoring the standard file descriptors 0, 1 and 2 scan for
GPU usage of a process only if that process had activity last cycle or
its last scan was more than five seconds ago.
|
|
|
|
|
|
|
| |
Based on the DRM client usage stats[1] add statistics for GPU time spend
and percentage utilization.
[1]: https://www.kernel.org/doc/html/latest/gpu/drm-usage-stats.html
|
|
|
|
| |
Bail out early if the passed time is 0 and shadow the result.
|
| |
|
|
|
|
|
|
| |
Instead of handling PERCENT_CPU as a special case for whether to align
the title of a dynamically sized column to the right or the left
introduce a new flag, which can be reused by other columns.
|
|
|
|
|
|
|
| |
The difference of scans is useful for utilization calculations.
To avoid divisions by 0 on first scan set monotonicMs also on first
scan.
|
| |
|
|
|
|
| |
The clamping itself has a sanity check when debug mode is active.
|
|
|
|
| |
Because the compilers weren't yet able to optimize this one. :)
|
|
|
|
|
|
|
|
|
|
| |
The passed width should always be at least 4, otherwise printing will
always truncate and lead to an abort().
The passed should not be greater or equal to the available buffer size,
otherwise printing will always truncate and lead to an abort().
Add fallback for non debug builds.
|
|
|
|
|
| |
In case the current CPU usage percentage is NAN the width calculation is
invalid. Use the default with of 4, which is appropriate for "N/A ".
|
|
|
|
|
| |
The GitHub runners for the LLVM jobs are using ubuntu-latest, which is
as of today Ubuntu 22.04 (jammy).
|
|
|
|
|
|
| |
Should be fixed in LLVm 17: https://github.com/llvm/llvm-project/commit/fb77ca05ffb4f8e666878f2f6718a9fb4d686839
This reverts commit 53bd369be760aaeb5e28cb965e9edcfb3f232d92.
|
| |
|
| |
|
| |
|
|
|
|
| |
Closes: #1410
|
| |
|
|\
| |
| |
| | |
of Scrumplex/htop
|
| |
| |
| |
| | |
Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net>
|
|/
|
|
|
|
|
|
| |
Some configuration systems might link a htop configuration file and we
don't really want to replace the symlink but rather its source. This
will also allow us to fail in case the source is read only.
Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net>
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|\ |
|
|/
|
|
|
| |
Rarely (if ever) do we see references in the documentation to `pcp htop` (it's mainly just `pcp-htop`, with a hyphen instead of a space). I fixed the documentation to reflect this.
Feel free to ignore this if the space is intentional.
|
|
|
| |
Co-authored-by: BenBE <BenBE@geshi.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Over in the PCP project, Coverity has spotted a couple of minor
issues in the htop code.
This commit addresses them:
Settings.c
need to take control of the umask before calling mkstemp()
pcp/Platform.c
Although Platform_getMaxPid() returns a pid_t (which
strictly speaking is signed), the value is used to call
Row_setPidColumnWidth() and a negative value here is not good
... using INT_MAX instead of UNIT_MAX on the (unlikely) error
path makes no practical difference but may keep Coverity quiet
|
|
|
|
|
| |
Unbreak builds on macOS versions where _mach_port_t.h does not exist.
mach/port.h exists on every macOS and has needed defines.
|
|
|
|
|
|
|
|
|
|
|
| |
Kernel threads are commonly not based on an executable and their cmdline
therefore just a human readable string.
On Linux this string might contain slashes, e.g. kworker/7:5H-ttm, which
cause Process_writeCommand() to print only the trailing parts if the
option *Show Program Path* is disabled.
Reported-and-Suggested-By: mmrmaximuzz
Fixes: #1391
|
|
|
|
| |
This potentially avoids guessing the right path in the presence of spaces inside the executable path.
|
| |
|
|
|
|
|
|
|
|
|
| |
Compare the return value of sscanf(3) and fscanf(3) explicitly against
the expected number of parsed items and avoid implicit boolean
conversion. Such an implicit conversion would treat EOF (-1) the same
as at least one item parsed successfully.
Reported by CodeQL.
|
|
|
|
|
| |
free_and_xStrdup() internally skips the strdup() allocation if both
strings exist are are the same. Drop such conditions prior of a call.
|
|
|
|
|
|
| |
Make it more clear the variable stores the previous tty number (similar
to lasttimes), while the current one gets set in the intermediate
LinuxProcessTable_readStatFile().
|
| |
|