| Commit message (Collapse) | Author | Age | Files | Lines |
|\ |
|
|/| |
|
| |
| |
| |
| |
| |
| |
| | |
Add license and repology badge, improve several wording, improve
several sections.
[skip ci]
|
|\ \ |
|
|/| |
| | |
| | |
| | | |
cgzones-multicolumn
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Extending to right neighbors is intended for text meters with an
overlong content, so the whole text is shown if possible.
Multi column meters, like the combined memory and swap meter, position
its text depending on the given total width; keep the position to the
original assigned header slot.
Short term resolution for #796
|
|\ \ \
| |_|/
|/| | |
|
|/| | |
|
| | |
| | |
| | |
| | | |
Do not reset the hidden process selection (and hidden function bar) on mouse events, when mouse support is disabled.
|
| |/
|/| |
|
|/ |
|
|\
| |
| | |
Highlight percentages similar to large numbers
|
| |
| |
| | |
Update Process_printPercentage such that color change happens only once at 100% and beyond.
|
| | |
|
| |
| |
| |
| |
| | |
The header layout, and therefore the number of columns, should never
be changed within such loop.
|
| |
| |
| |
| |
| | |
The LRS value is only zero in the first cycle; drop the check to
recalculate while running.
|
| |
| |
| |
| |
| | |
Simplify and update valgrind suppressions for possible leak and
reachable memory inside ncurses.
|
| | |
|
| |
| |
| |
| |
| |
| |
| |
| | |
Select the current active header layout, not the current saved layout
from the settings, as the value gets only saved back from the active
header to settings on closing the setup menu.
Closes: #785
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Zero all the CPU data, like totalPeriod, after its memory allocation via
realloc(3).
Conditional jump or move depends on uninitialised value(s)
at 0x132A9B: LinuxProcessList_scanCPUTime (LinuxProcessList.c:1928)
by 0x1358C3: ProcessList_goThroughEntries (LinuxProcessList.c:2079)
by 0x12A79A: ProcessList_scan (ProcessList.c:627)
by 0x11CA67: CommandLine_run (CommandLine.c:357)
by 0x4A81E49: (below main) (libc-start.c:314)
Uninitialised value was created by a heap allocation
at 0x48396C5: malloc (in /usr/libexec/valgrind/vgpreload_memcheck-amd64-linux.so)
by 0x12F633: xRealloc (XUtils.c:64)
by 0x12F633: xReallocArray (XUtils.c:78)
by 0x1325A8: LinuxProcessList_updateCPUcount (LinuxProcessList.c:207)
by 0x134E0A: ProcessList_new (LinuxProcessList.c:284)
by 0x11C8D0: CommandLine_run (CommandLine.c:301)
by 0x4A81E49: (below main) (libc-start.c:314)
|
| |
| |
| |
| |
| | |
Add helper function to reallocate an dynamic allocated array including
zeroing the newly allocated memory.
|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Use the same width for each sub meter to align with CPU meter.
Currently if the total width is even, so it does not split exactly into
2 equal parts plus 1 (for the middle space character column), the extra
column is added to the second meter width.
Closes: #783
|
| |
| |
| |
| |
| | |
Close the backup file descriptor of original stderr once it has been
restored at stderr.
|
| |
| |
| |
| |
| | |
Without this htoprc from sysconfdir is ignored and default meters
are loaded.
|
| | |
|
| | |
|
|/ |
|
|
|
|
|
| |
Replace several open-coded variants of percentage formatting.
This function has been ported from Hishams old 'next' branch.
|
| |
|
|
|
|
| |
Affinity.c:67:10: runtime error: implicit conversion from type 'int' of value -1 (32-bit, signed) to type 'unsigned int' changed the value to 4294967295 (32-bit, unsigned)
|
|
|
|
|
|
|
|
| |
The build time configuration ancient-vserver implies the configuration
vserver; say so in the configure status report if only ancient-vserver
has been specified.
Also indent with 3 spaces.
|
| |
|
| |
|
|
|
|
|
| |
Also avoid declaring variables of different type, pointer and array, in
the same line.
|
| |
|
|
|
|
|
|
| |
Use a value type of 'long int' to avoid ENOMEM failures of sysctl(3).
Also check for "machdep.tsc_freq", scaled in MHz.
|
| |
|
|
|
|
| |
Populate fields to ttyname, minflt, majflt and processor.
|
|
|
|
|
| |
kvm_getenvv(3) seems not to work with kvm_openfiles(..., KVM_NO_FILES,
...)
|
| |
|
|
|
|
|
|
| |
On NetBSD define_key(3) has the prototype
int define_key(char *sequence, int key_symbol);
|
|
|
|
|
|
| |
On NetBSD state 'R' means runnable not running.
Improve the color identifier name accordingly.
|
|
|
|
|
|
|
| |
Be sure to free dynamic memory allocated for meters and
columns strings, no-op on platforms other than pcp.
Closes #774
|
|\
| |
| | |
PCP: do not set exe to empty string
|
|/
|
|
|
|
| |
In case the executable is an empty string, e.g. if pcp is run by an
unprivileged user, do not set procExe to an empty value, which breaks
the formatting of the PROCEXE column and the merged-cmdline logic.
|
|
|
|
|
|
|
|
|
| |
Generalize sub-diskname handling, like sdb1/sdb2, to not count the
usage twice with the aggregate top-diskname, like sdb.
Rely on /proc/diskstats being ordered, e.g. no sub-diskname precedes its
top-diskname.
Closes: #675
|
|
|
|
|
|
|
|
| |
If htop is started for the first time and no configuration file exists
the header is empty cause no meters are added as a default.
Add the default meters if parsing all available configuration paths
failed.
|
|
|
|
|
|
| |
`recheck` is calculated modulo 2048, so its maximum value is 2047.
Drop the quite similar (up to 27 milliseconds) explicit check against
2000.
|
| |
|
|
|
|
|
|
| |
Use the color gray, similar to other process fields, if the delay
accounting value is either 0 (or very small) or cannot be accessed, e.g.
by an unprivileged user.
|