| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Note: dragonflybsd does not have 'jail_get' like freebsd does.
It does however provide a sysctl "jail.list" which returns a list of all jails.
|
| |/ / |
|
|\ \ \
| |/ /
|/| | |
Enh: scripts/MakeHeader script
|
|/ /
| |
| |
| |
| | |
Only write a new .h file if something changed for the header file being created.
This prevents a lot of recompilation during development
|
|\ \
| | |
| | | |
Add missing include
|
| | |
| | |
| | | |
sys/time.h for struct timeval
|
|\ \ \
| |/ /
|/| | |
Add Comment[zh_CN] and GenericName[zh_CN] into htop.desktop
|
|/ / |
|
|\ \ |
|
| |\ \
| | | |
| | | | |
Issue #502 update Session ID column
|
| | | | |
|
| |/ / |
|
| |\ \
| | | |
| | | | |
Replace all uses of sprintf with snprintf
|
| |/ /
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
In all the cases where sprintf was being used within htop, snprintf
could have been used. This patch replaces all uses of sprintf with
snprintf which makes sure that if a buffer is too small to hold the
resulting string, the string is simply cut short instead of causing
a buffer overflow which leads to undefined behaviour.
`sizeof(variable)` was used in these cases, as opposed to `sizeof
variable` which is my personal preference because `sizeof(variable)`
was already used in one way or another in other parts of the code.
|
|/ /
| |
| |
| |
| | |
Apparently invalid results can be returned by buggy drivers in old laptops,
as reported by @thukydides. See #596.
|
| |
| |
| |
| |
| | |
translate dev_t to major:minor on other platforms.
Closes #316.
|
|\ \ |
|
| |\ \
| | | |
| | | | |
Real-time signals support (kill command)
|
| | | |
| | | |
| | | |
| | | | |
and change alignment of numbers.
|
|\ \ \ \
| |/ / /
|/| / /
| |/ / |
Real-time signals support (kill command)
|
|/ /
| |
| |
| |
| |
| |
| |
| |
| |
| | |
SignalsPanel_new now fetches SIGRTMIN and SIGRTMAX and generates real-
time signals entries at runtime.
All signals between SIGRTMIN and SIGRTMAX are written in "SIGRTMIN+n"
notation, per discussion in pull request #551.
Signed-off-by: Kang-Che Sung <explorer09 @ gmail.com>
|
|\ \ |
|
| |\ \
| | | |
| | | | |
Fix column misalignment for priority -101 threads
|
| |/ /
| | |
| | |
| | |
| | |
| | | |
BFS-patched kernels can have kernel threads with priority -101.
This change makes priority -101 display as "RT", just like priority -100.
Related: https://github.com/hishamhm/htop/issues/314
|
|/ /
| |
| |
| | |
Courtesy to OpenWRT environments as requested by @champtar in #540.
|
|\ \ |
|
| |\ \
| | | |
| | | | |
Mark signal tables 'const'
|
| |/ /
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Specifically, Platform_signals[] and Platform_numberOfSignals. Both are
not supposed to be mutable. Marking them 'const' puts them into rodata
sections in binary. And for Platform_numberOfSignals, this aids
optimization (aids only Link Time Optimization for now). :)
Signed-off-by: Kang-Che Sung <explorer09@gmail.com>
|
|/ /
| |
| |
| | |
Closes #546.
|
| | |
|
| | |
|
| | |
|
|\ \
| | |
| | | |
Optimize Strings_startWith()
|
|/ /
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Use strncmp() combined with a strlen() will give better performance
than a strstr in worst case. Especially when the match prefix is a
constant and not a variable.
While we are at it, replace the match() function in linux/Battery.c,
which uses a naive algorithm, with a macro that does better job by
utilizing Strings_startWith().
$ gcc --version | head -n 1
gcc (Ubuntu 4.8.4-2ubuntu1~14.04.3) 4.8.4
$ uname -m
x86_64
$ size htop.old htop.new
text data bss dec hex filename
137929 15112 3776 156817 26491 htop.old
137784 15104 3776 156664 263f8 htop.new
Signed-off-by: Kang-Che Sung <explorer09 @ gmail.com>
|
|\ \
| | |
| | | |
Change scrolling behavior to make it more similar to other applications.
|
|/ /
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Commit "Make PgDown behavior more usual." 759caf0f8fa593430adea676fc64612b5197dca8
silently changes the PageDown scrolling behavior that, instead of
scrolling one window down until the end of the window touches the end
of the list, the window simply repositions itself in a way that the
selected item always become the last item in the new window.
The commit reverts the behavior, and also fixes sanity conditionals
so that the scrollV variable will _never_ become negative or out-of-
bound.
Fixes issue #532. Also keep the problem #480 addressed.
Signed-off-by: Kang-Che Sung <explorer09 @ gmail.com>
|
|\ \ |
|
| |\ \
| | | |
| | | | |
Let BarMeterMode_characters[] be const array.
|
| |/ / |
|
|/ / |
|
| | |
|
|/ |
|
|\
| |
| | |
Allow to override ncurses*-config path
|
| |
| |
| |
| |
| |
| |
| |
| | |
This will be used when cross-compiling with ncurses*-config generated for the
target, using constructs like
HTOP_NCURSES_CONFIG_SCRIPT=/path/to/ncurses5-config
Signed-off-by: Ricardo Martincoski <ricardo.martincoski@gmail.com>
|
| |
| |
| |
| | |
Closes #520.
|
| | |
|
| |
| |
| |
| |
| |
| |
| | |
* Dynamically adjust the size of line reads.
* Remove some more uses of fgets with arbitrary sizes.
* Fix reading of lines and width of n column.
Fixes #514.
|
| | |
|
| | |
|
| | |
|