summaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)Author
2020-12-19Separate tree and list sort ordersHisham Muhammad
Implements the suggestion from https://github.com/htop-dev/htop/issues/399#issuecomment-747861013 Thanks to the refactors from 0bd5c8fb5da and 6393baa74e5, this was really easy and clean to do. It maintains the "Tree view always by PID" option in the Settings, which results in some specific behaviors such as "clicking on the column header to exit tree view" and "picking a new sort order to exit tree view", for the sake of the muscle memory of long time htop users. :)
2020-12-19Add "Tree view is always sorted by PID" option to mimic htop 2 behaviorHisham Muhammad
2020-12-19Invert Process_compare resolution so that superclass matches run firstHisham Muhammad
* This removes duplicated code that adjusts the sort direction from every OS-specific folder. * Most fields in a regular htop screen are OS-independent, so trying Process_compare first and only falling back to the OS-specific compareByKey function if it's an OS-specific field makes sense. * This will allow us to override the sortKey in a global way without having to edit each OS-specific file.
2020-12-18Fix typoChristian Göttsche
2020-12-18ProcessList: save scan time in millisecondChristian Göttsche
The delay is saved in deciseconds, use a bigger resolution to avoid timing irregularities.
2020-12-18Support clock_gettime() on OSX El Capitan and earlierChristian Göttsche
2020-12-18Update key mapping documentation for sortingBenny Baumann
2020-12-16Move macro definitions close to usageChristian Göttsche
2020-12-16Use common naming for bare enum typesChristian Göttsche
2020-12-16MainPanel: use actual KEY_RESIZE instead of KEY_SHUFFLEChristian Göttsche
KEY_RESIZE (0632) is equal to KEY_SHUFFLE (0x19a)
2020-12-15MainPanel: do not reset hideProcessSelection on KEY_SHUFFLEChristian Göttsche
KEY_SHUFFLE might get send from time to time, e.g. in a tmux session.
2020-12-15LibSensors: fix unversioned libsensors library nameChristian Göttsche
2020-12-15LibSensors: restore temperature for Raspberry PiChristian Göttsche
sensors output: cpu_thermal-virtual-0 Adapter: Virtual device temp1: +58.0 C (crit = +90.0 C)
2020-12-15Meter: restore non-wide-character buildChristian Göttsche
Use mbstowcs() only with wide ncurses support. Closes: #401
2020-12-14Misc CRT cleanupChristian Göttsche
2020-12-14Handle absence of package CPU temperatureChristian Göttsche
Resolves: #389
2020-12-14Merge pull request #398 from natoscott/harden-linux-btime-initNathan Scott
Harden the extraction of boot time for the Linux platform
2020-12-14Harden the extraction of boot time for the Linux platformNathan Scott
There is a possible path - albeit theoretical really - through the btime initialization code in Linux ProcessList_new(), when String_startsWith() is always false, which can result in btime not being initialized. This commit refactors the code to remove that possibility.
2020-12-14Cleanup initialization of jiffies on the Linux platformNathan Scott
Small cleanups - add error handling, remove a local static variable and refactor LinuxProcess_adjustTime (also rename it, as its in LinuxProcessList.c not LinuxProcess.c) - and while there, move the related 'btime' global variable into LinuxProcessList.c so it can be made static. Resolves https://github.com/htop-dev/htop/issues/384
2020-12-14Merge pull request #395 from natoscott/man-page-lintingNathan Scott
Remove superflous breaks around man page section heads
2020-12-14Simplify initialization of the Linux haveSmapsRollup variableNathan Scott
2020-12-14Remove superflous breaks around man page section headsNathan Scott
There is no need to start a paragraph explicitly after a section header (SH) in troff - some man linters will complain about this as well.
2020-12-13Merge branch 'fix-dlopen-libsensors-debian' of fasterit/htopDaniel Lange
2020-12-13Merge branch 'fix_mach_timebase' of benbe/htopDaniel Lange
2020-12-13Add column in darwin to indicate whether the the process is running under ↵Dániel Bakai
translation
2020-12-13Move Process_fields from darwin/Platform to darwin/DarwinProcessDániel Bakai
2020-12-13Move Process_fields from unsupported/Platform to unsupported/UnsupportedProcessDániel Bakai
2020-12-13Correct timebase for non-x86 CPUs on DarwinBenny Baumann
Fixes: #368
2020-12-13Sort include in Darwin platform headersBenny Baumann
2020-12-13Check if clock_gettime needs linking of librtChris Burr
2020-12-13Define O_PATH if not already definedChris Burr
2020-12-12Fix dlopen issue for libsensors5 in Debian Buster, BullseyeDaniel Lange
libsensors.so is provided only by the -dev package, so search for libsensors.so.5 (installed from the libsensors5 package) explicitly see: dpkg-query -S libsensors.so
2020-12-12Indentation and line continuation fixes in configure.acBenny Baumann
2020-12-11Add sys/dirent.h to iwyu/htop.impGraham Inggs
2020-12-11Drop redundant sys/dirent.h includeGraham Inggs
sys/dirent.h is included by dirent.h in FreeBSD, and does not exist in Debian GNU/kFreeBSD
2020-12-11Merge pull request #379 from natoscott/streamline-pagesize-variablesNathan Scott
Cull the definitions of pageSize and pageSizeKB from CRT.c
2020-12-10Cull the definitions of pageSize and pageSizeKB from CRT.cNathan Scott
By storing the per-process m_resident and m_virt values in the form htop wants to display them in (KB, not pages), we no longer need to have definitions of pageSize and pageSizeKB in the common CRT code. These variables were never really CRT (i.e. display) related in the first place. It turns out the darwin platform code doesn't need to use these at all (the process values are extracted from the kernel in bytes not pages) and the other platforms can each use their own local pagesize variables, in more appropriate locations. Some platforms were actually already doing this, so this change is removing duplication of logic and variables there.
2020-12-09Sort in paused mode after inverting sort orderChristian Göttsche
2020-12-09Fix pause mode ("Z") in tree viewDaniel Lange
2020-12-08PSI Meter: use constant width and only print ten-duration as barChristian Göttsche
2020-12-08Process: simplifyChristian Göttsche
2020-12-08Additional code simplificationBenny Baumann
Additional correction for #375
2020-12-08Fix broken tree display on inverted sort orderBenny Baumann
Fixes #375
2020-12-08Split RichString_(append|appendn|write) into wide and asciiChristian Göttsche
RichString_writeFrom takes a top spot during performance analysis due to the calls to mbstowcs() and iswprint(). Most of the time we know in advance that we are only going to print regular ASCII characters.
2020-12-08Use sizeof buffer instead of magic numberChristian Göttsche
2020-12-08travis CI: drop macOS and Linux buildsChristian Göttsche
They are covered by GitHub CI Also testing on s390x does not serve much
2020-12-08GitHub CI: add macOS buildChristian Göttsche
2020-12-07Merge branch 'gentoo' of cgzones/htopDaniel Lange
2020-12-07SELinuxMeter: silence comparison warning on 32-bitChristian Göttsche
linux/SELinuxMeter.c: In function ‘hasSELinuxMount’: linux/SELinuxMeter.c:38:21: warning: comparison of integer expressions of different signedness: ‘__fsword_t’ {aka ‘int’} and ‘unsigned int’ [-Wsign-compare] 38 | if (sfbuf.f_type != SELINUX_MAGIC) { | ^~ Origin: https://github.com/SELinuxProject/selinux/blob/7df27b78e9eecbe65a57cdfefb9e51f547231b20/libselinux/src/init.c#L40
2020-12-07configure: check for additional linker flags for keypad(3)Christian Göttsche
Gentoo requires an explicit addition of -ltinfo Resolves: https://bugs.gentoo.org/show_bug.cgi?id=690840