summaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)Author
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.
2021-09-02linux: drop unused macro IOPriority_errorChristian Göttsche
2021-09-02linux: drop dead process field column DIRTYChristian Göttsche
The field for dirty pages in /proc/[pid]/statm is always 0 since Linux 2.6 (see man:proc(5)).
2021-09-02CPUMeter: use correct buffer sizeChristian Göttsche
2021-09-02travis-ci: updateChristian Göttsche
Drop explicit CFLAGS specification as `-Wno-c11-extensions` is enabled on FreeBSD by the configure script. Run and check `make install` and `make installcheck`.
2021-08-31Fix resource leaks dealing with unrecognised config file versionNathan Scott
Plug leaks of an open file descriptor and dynamically allocated 'option' when we bail out early reading unknown config version.
2021-08-31Fix meterPanels size calculation for dynamic array allocationNathan Scott
2021-08-27Small editorial fixes to ChangeLogDaniel Lange
2021-08-27Remove trailing whitespace in changelog for CI checksNathan Scott
2021-08-27Update configure to reflect rc1 in the versionNathan Scott
2021-08-27Update ChangeLog3.1.0rc1Nathan Scott
2021-08-26Merge branch 'shorten_crash_report' of cgzones/htop, rebased by BenBEDaniel Lange
2021-08-26Shorten crash output to fit on screenChristian Göttsche
2021-08-26Remove license excemption for PLPA and update GPL-2 license textDaniel Lange
The Portable Linux Processor Affinity (PLPA) project has been depreciated in favour of the Portable Hardware Locality (hwloc) project. So the license exception present in previous versions of htop is obsolete and thus removed. The text of COPYING has been updated to the latest upstream license text of GPL-2 from the Free Software Foundation, Inc. (FSF). There are only editorial changes like line wrapping, removing page breaks, updating the "19yy" to "<year>" and changing the FSF address.
2021-08-25Clarify naming of Platform_nanosecondsPerSchedulerTickBenny Baumann
2021-08-25Merge branch 'refactor-Darwin-platform-unit-conversion-helpers' of ↵Daniel Lange
amomchilov/htop
2021-08-25Refactor Darwin platform unit conversion helpersAlexander Momchilov
2021-08-25Merge branch 'fix-macOS-time-calculations' of amomchilov/htopDaniel Lange
2021-08-25configure: resolve autotools 2.70 deprecation warningsChristian Göttsche
configure.ac:72: warning: The macro `AC_PROG_CC_C99' is obsolete. configure.ac:72: You should run autoupdate. ./lib/autoconf/c.m4:1659: AC_PROG_CC_C99 is expanded from... configure.ac:72: the top level configure.ac:134: warning: The macro `AC_HEADER_STDC' is obsolete. configure.ac:134: You should run autoupdate. ./lib/autoconf/headers.m4:704: AC_HEADER_STDC is expanded from... configure.ac:134: the top level
2021-08-25IWYU updateChristian Göttsche
2021-08-25IWYU: add two header rulesChristian Göttsche
2021-08-25XUtils: move implementation of String_contains_i out of header fileChristian Göttsche
The function strcasestr(3) is only available if _GNU_SOURCE is defined. If any file includes <string.h> before declaring _GNU_SOURCE, e.g by including "config.h", compilation fails with the following error: In file included from ColumnsPanel.c:8: In file included from ./ColumnsPanel.h:12: In file included from ./Panel.h:13: In file included from ./CRT.h:16: In file included from ./Settings.h:17: In file included from ./Process.h:15: In file included from ./Object.h:17: ./XUtils.h:42:11: error: implicit declaration of function 'strcasestr' is invalid in C99 [-Werror,-Wimplicit-function-declaration] return strcasestr(s1, s2) != NULL; ^ ./XUtils.h:42:11: note: did you mean 'strcasecmp'? /usr/include/strings.h:116:12: note: 'strcasecmp' declared here extern int strcasecmp (const char *__s1, const char *__s2) ^ Move the implementation to avoid unnecessary includes. Since LTO is quite common and stable performance should not be impacted if used.
2021-08-24Merge branch 'hlayout_id' of cgzones/htopDaniel Lange
2021-08-24HeaderLayout: save name in configurationChristian Göttsche
Use a name in the user configuration file instead of the compile time enum value, so that future reorderings or insertions do not change the user selected layout.
2021-08-24Unsupported: update platformChristian Göttsche
2021-08-23Style touch-upsAlexander Momchilov
2021-08-23Fix macOS CPU time calculationsAlexander Momchilov
2021-08-23Merge branch 'header_fmt' of cgzones/htopDaniel Lange
2021-08-23Merge branch 'config_versions' of fasterit/htopDaniel Lange
2021-08-23Tiny cleanup from review commentsDaniel Lange
2021-08-23Simplify delay.tv_usec calculation from BenBEDaniel Lange
Closes #761
2021-08-23Apply approved warning message suggested by nathansDaniel Lange
2021-08-22Widen integer type before multiplicationChristian Göttsche
Meter.c:320:71: warning: performing an implicit widening conversion to type '__suseconds_t' (aka 'long') of a multiplication performed in type 'int' [bugprone-implicit- widening-of-multiplication-result] struct timeval delay = { .tv_sec = globalDelay / 10, .tv_usec = (globalDelay - ((globalDelay / 10) * 10)) * 100000 }; ^
2021-08-22Use break inside loop with false conditionChristian Göttsche
Found by clang-tidy. home/christian/Coding/workspaces/htop/Process.c:505:13: warning: 'continue' in loop with false condition is equivalent to 'break' [bugprone-terminating-continue] WRITE_HIGHLIGHT(0, strlen(procComm), commAttr, CMDLINE_HIGHLIGHT_FLAG_COMM); ^ /home/christian/Coding/workspaces/htop/Process.c:461:13: note: expanded from macro 'WRITE_HIGHLIGHT' continue; \ ^
2021-08-22Align parameters names between function declaration and definitionChristian Göttsche
Found by clang-tidy.
2021-08-22Simplify adding pages in one placeBenny Baumann
2021-08-22Add option to change Header layoutChristian Göttsche
2021-08-22Only request selection index in ColorsPanel when neededBenny Baumann
2021-08-22Removed unused field in ColorsPanelBenny Baumann
2021-08-22MemorySwapMeter: use full width on odd total widthChristian Göttsche
2021-08-22Meter: update documentation to match Doxygen styleChristian Göttsche
2021-08-22Linux: do not scan frequency for inactive CPUsChristian Göttsche
2021-08-22Abstract resize handling by adding a new Htop reactionChristian Göttsche
2021-08-22ScreenManager: reduce ScreenManager_resizeChristian Göttsche
The main change is the header hight being not included in y1. This is important if a sub-manager gets resized, e.g. a resize while editing the Settings or in a pickFromVector selection, and afterwards, then the sub-manager is closed, the super-ScreenManager gets resized, it uses the correct header hight. The header hight might have been changed since the last resize of the super-manager in the Settings by adding/removing some meters. This fixes new meters being hidden after added at runtime after a resize in the main window.