| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
| |
|
|
|
| |
Not for a comparison to zero
|
|
|
| |
*hightlight*
|
|
|
|
|
|
|
|
| |
Fixes #688, the bug regressed on 584a9bc.
On Mac OS X 10.11.6, all processes have their parents since there's a
special process named "kernel_task", whose PID and PPID are 0. As a
result, `this->processes` is never changed causing infinite `while`.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Linux commit 06eb61844d841d0032a9950ce7f8e783ee49c0d0 ("sched/debug:
Add explicit TASK_IDLE printing") exposes kthreads idling using
TASK_IDLE in procfs as "I (idle)".
Until now, when sorting the STATE ("S") column, htop used the raw
value of the state character for comparison, however that led to the
undesirable effect of TASK_IDLE ('I') tasks being sorted above tasks
that were running ('R').
Thus, explicitly recognize the idle process state, and sort it below
others.
|
| |
|
|
|
|
|
|
|
|
|
| |
operation is not possible to be conducted in an atomic fashion, task
scheduling effects can lead to a count greater than the number of actual
processors; this is more easily noticed on machines with several CPUs
and under heavy workload.
This patch simply adds an upper bound on cpuCount to guarantee
consistent reports of the number of running tasks at any given time.
|
|
|
|
|
|
| |
Adds support for showing columns with linux delay accounting.
This information can be read from the netlink interface, and thus we set up a socket to read from that when initializing the LinuxProcessList (LinuxProcessList_initNetlinkSocket). After that, for each process we call LinuxProcessList_readDelayAcctData, which sends a message thru the socket after setting up a callback to get the answer from the Kernel. That callback sets the process total delay time attribute. We then set the delay percent as the percentage of time process cpu time since last scan.
|
|
|
|
|
|
|
|
|
|
| |
GCC 7.x does some extended checks on fallthough for switch/case
statement. The warning looks like this:
warning: this statement may fall through [-Wimplicit-fallthrough=]
It can be told about implicit fallthough, however it does not
recognize comments within blocks, so move the comments outside.
|
|\
| |
| | |
Remove libtool references
|
|/
|
|
|
|
|
|
|
| |
The project builds a single standalone binary.
There are no libraries created - be that static or shared ones.
Thus there's no need for libtool.
Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
|
| |
|
| |
|
|\
| |
| | |
Find roots when constructing process tree, fix #587
|
|/ |
|
| |
|
|\
| |
| | |
make script version agnostic
|
|/ |
|
|
|
|
|
| |
Calls marked with xSnprintf shouldn't fail.
Abort program cleanly if any of them does.
|
|\ |
|
| |\
| | |
| | | |
Round values in graph drawing (instead of implicit truncate)
|
| | | |
|
| |\ \
| | | |
| | | | |
more const usage
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Several string pointer arrays pointed to const strings
but were not const themselves.
A few various structures and arrays were also marked const.
|
| | | | |
|
| |\ \ \
| | |/ /
| |/| | |
Settings: do not emit trailing whitespace
|
| |/ / |
|
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
This is/was necessary only on macOS, because you needed root in order
to read the process list. This was never necessary on Linux, and
it also raises security concerns, so now it needs to be enabled
explicitly at build time.
|
|/ / |
|
| |
| |
| |
| |
| | |
Thanks @Sworddragon for the heads up.
See #88.
|
|\ \ |
|
| |\ \
| | |/
| |/| |
DragonFlyBSD PID_MAX is 999999.
|
| |/
| |
| |
| |
| |
| | |
See DragonFlyBSD source "sys/sys/proc.h".
Fixes #646
|
|/
|
|
| |
Closes #648.
|
|
|
|
| |
As suggested by @wolfgang42 in #100.
|
|
|
|
| |
As suggested by @wolfgang42. Fixes #100.
|
|\ |
|
| |\
| | |
| | | |
make special keys also work with TERM=xterm-256color
|
| |/ |
|
|/ |
|
|\
| |
| | |
Mouse-friendly functions bar for meters panel
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Before:
SpaceStyle EnterMove DelDeleteEscDone |
~~~~~ ~~~~~ ~~~ ~~~ |
UpUp DnDown LtLeft RtRight EnterConfirmDelDeleteEscDone |
~~ ~~ ~~ ~~ ~~~~~ ~~~ ~~~ |
After:
SpaceStyle EnterMove DelDeleteF10Done
~~~~~ ~~~~~ ~~ ~~~ ~~~
SpaceStyle EnterLock UpUp DnDown <-Left ->Right DelDeleteF10Done
~~~~~ ~~~~~ ~~ ~~ ~~ ~~ ~~ ~~~ ~~~
* Align 'Delete' and 'Done' to the right to match functions on other
screens. (Accidental clicking is avoided as a side benefit.)
* You could change meter type while in moving mode. New bar now hints
this.
* Two Enter key functions are put in the same place and so mouse clicks
there act like functions toggle. (The wording change to 'Lock' is
also to reflect this.)
* '<-' and '->' instead of 'Lt' and 'Rt' abbreviation as the latter is
not widely seen and arrows shapes are obvious. :)
* 'Esc' key for 'Done' in this context may not be intuitive, comparing
to 'F10'. While I wish there be a Cancel/Undo function for 'Esc', it
wouldn't hurt if we write 'F10' for 'Done' on functions bar for now.
|
| |
| |
| |
| |
| | |
Per @hishamhm's suggestion. This is UI change only.
In code the class names and symbols still refer them as "modes".
|
| | |
|
|\ \
| | |
| | | |
update keymap in help
|
| | | |
|
|\ \ \
| | | |
| | | | |
Initial addition of dragonflybsd (based on FreeBSD)
|
| | | | |
|
| | | | |
|