summaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)Author
2021-09-20Merge branch 'cgzones-readme'3.1.0rc3Nathan Scott
2021-09-20Merge branch 'readme' of https://github.com/cgzones/htop into cgzones-readmeNathan Scott
2021-09-20Merge branch 'cgzones-multicolumn'Nathan Scott
2021-09-20Merge branch 'multicolumn' of https://github.com/cgzones/htop into ↵Nathan Scott
cgzones-multicolumn
2021-09-20Merge branch 'cgzones-mouse'Nathan Scott
2021-09-20Merge branch 'mouse' of https://github.com/cgzones/htop into cgzones-mouseNathan Scott
2021-09-19Update ReadMeChristian Göttsche
Add license and repology badge, improve several wording, improve several sections. [skip ci]
2021-09-18Header: do not let multi-column meters expand to empty neighborsChristian Göttsche
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
2021-09-18Fix typoChristian Göttsche
2021-09-18Fix typo in gettime implementation on darwinBenny Baumann
2021-09-18MainPanel: do not reset on disabled mouse eventsChristian Göttsche
Do not reset the hidden process selection (and hidden function bar) on mouse events, when mouse support is disabled.
2021-09-14Merge pull request #779 from BenBE/percent-highlightNathan Scott
Highlight percentages similar to large numbers
2021-09-14Process_printPercentage using one color transitionNathan Scott
Update Process_printPercentage such that color change happens only once at 100% and beyond.
2021-09-12Header: cache number of columns in HeaderLayout_getColumnsChristian Göttsche
The header layout, and therefore the number of columns, should never be changed within such loop.
2021-09-12Linux: recalculate LRS valueChristian Göttsche
The LRS value is only zero in the first cycle; drop the check to recalculate while running.
2021-09-11valgrind: rewrite ncurses suppressionsChristian Göttsche
Simplify and update valgrind suppressions for possible leak and reachable memory inside ncurses.
2021-09-11valgrind: track origin of uninitialised valuesChristian Göttsche
2021-09-11HeaderOptionsPanel: select the current not saved optionChristian Göttsche
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
2021-09-11Linux: zero CPU data after allocationChristian Göttsche
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)
2021-09-11Add xReallocArrayZero() helperChristian Göttsche
Add helper function to reallocate an dynamic allocated array including zeroing the newly allocated memory.
2021-09-10MemorySwapMeter: align with CPU meterChristian Göttsche
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
2021-09-10CRT: close backup stderr file after resetChristian Göttsche
Close the backup file descriptor of original stderr once it has been restored at stderr.
2021-09-10Settings: set ok when reading configuration from sysconfdirChristian Hesse
Without this htoprc from sysconfdir is ignored and default meters are loaded.
2021-09-08Add missing end-of-line to htoprc file version mismatch warningNathan Scott
2021-09-08Fix a typo in a configure.ac commentNathan Scott
2021-09-05Update configure to reflect rc2 in the version3.1.0rc2Benny Baumann
2021-09-05Highlight large percentages similar to large memory columnsBenny Baumann
2021-09-05Add a Process_printPercentage helper routineHisham Muhammad
Replace several open-coded variants of percentage formatting. This function has been ported from Hishams old 'next' branch.
2021-09-04Drop redundant semicolonsChristian Göttsche
2021-09-04hwloc: use int in hwloc_bitmap_foreach_begin loopChristian Göttsche
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)
2021-09-04configure: output vserver as implied if ancient-vserver is enabledChristian Göttsche
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.
2021-09-04Header: use upper case floating point suffixChristian Göttsche
2021-09-04Settings: enclose casted macro argument in parenthesisChristian Göttsche
2021-09-04Reduce variable scopeChristian Göttsche
Also avoid declaring variables of different type, pointer and array, in the same line.
2021-09-04ColumnsPanel: drop unused struct declarationChristian Göttsche
2021-09-03NetBSD: scale CPU frequenciesChristian Göttsche
Use a value type of 'long int' to avoid ENOMEM failures of sysctl(3). Also check for "machdep.tsc_freq", scaled in MHz.
2021-09-03NetBSD: misc const additionsChristian Göttsche
2021-09-03NetBSD: update process fieldsChristian Göttsche
Populate fields to ttyname, minflt, majflt and processor.
2021-09-03NetBSD: fix reading environment variables of processesChristian Göttsche
kvm_getenvv(3) seems not to work with kvm_openfiles(..., KVM_NO_FILES, ...)
2021-09-03NetBSD: simplify Platform_setMemoryValuesChristian Göttsche
2021-09-03NetBSD: silence dropping const qualifier on define_key(3)Christian Göttsche
On NetBSD define_key(3) has the prototype int define_key(char *sequence, int key_symbol);
2021-09-03NetBSD: color process state P as runningChristian Göttsche
On NetBSD state 'R' means runnable not running. Improve the color identifier name accordingly.
2021-09-03Add completion handling for dynamic meters and columnsNathan Scott
Be sure to free dynamic memory allocated for meters and columns strings, no-op on platforms other than pcp. Closes #774
2021-09-03Merge pull request #775 from cgzones/pcpNathan Scott
PCP: do not set exe to empty string
2021-09-02PCP: do not set exe to empty stringChristian Göttsche
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.
2021-09-02Linux: rework disk-io parsingChristian Göttsche
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
2021-09-02Settings: create default meters on no existing config fileChristian Göttsche
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.
2021-09-02linux: simplify recheck conditionChristian Göttsche
`recheck` is calculated modulo 2048, so its maximum value is 2047. Drop the quite similar (up to 27 milliseconds) explicit check against 2000.
2021-09-02Process: drop unused merged-command bit fieldsChristian Göttsche
2021-09-02linux: color void delay accounting values grayChristian Göttsche
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.