summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Bump version number for 3.0.4 release3.0.4Nathan Scott2020-12-222-1/+32
|
* Merge branch 'misc' of https://github.com/cgzones/htop into cgzones-miscChristian Göttsche2020-12-226-35/+25
|\
| * Panel_init: initialize selectedLen memberChristian Göttsche2020-12-211-0/+1
| |
| * EnvScreen: mark local class functions staticChristian Göttsche2020-12-212-15/+11
| |
| * TraceScreen: mark local class functions staticChristian Göttsche2020-12-212-19/+13
| |
| * InfoScreen: drop unused memberChristian Göttsche2020-12-211-1/+0
| |
* | Resolve clang-analyzer signed/unsigned comparison CI failureNathan Scott2020-12-221-2/+2
| |
* | Merge branch 'harden_makecommandstr' of https://github.com/BenBE/htop into ↵Nathan Scott2020-12-221-2/+15
|\ \ | | | | | | | | | BenBE-harden_makecommandstr
| * | DiD: Ensure string offsets are inside string boundariesBenny Baumann2020-12-211-0/+6
| | |
| * | Avoid NULL dereference on zombie processesBenny Baumann2020-12-211-2/+9
| |/ | | | | | | Fixes #361
* | Merge branch 'resize_bar' of https://github.com/cgzones/htop into ↵Nathan Scott2020-12-2215-93/+97
|\ \ | |/ |/| | | cgzones-resize_bar
| * MetersPanel: drop color interruption in FunctionBarChristian Göttsche2020-12-201-2/+2
| |
| * Use variable-length-array instead of small dynamic allocationChristian Göttsche2020-12-201-2/+2
| |
| * Rework drawing of FunctionBarChristian Göttsche2020-12-2014-89/+93
| | | | | | | | | | | | | | | | | | | | | | Draw the FunctionBar within Panel_draw instead of manually throughout the code. Add an optional PanelClass function drawFunctionBar, to allow specific panels to override the default FunctionBar_draw call. Rework the code on color change, to really change all colors (selection markers and panel headers). Closes: #402
* | Document dynamic bindings and assumed external configurationBenny Baumann2020-12-211-0/+41
| |
* | De-lazy @cgzones :)Daniel Lange2020-12-211-2/+2
| |
* | Action: sort key binding assignmentsChristian Göttsche2020-12-211-47/+46
| | | | | | | | Avoid accidental duplicate usage.
* | DragonFlyBSD updateChristian Göttsche2020-12-204-28/+18
| | | | | | | | | | - move some functions to file scope - drop unused global variable
* | DragonFlyBSD updateChristian Göttsche2020-12-204-6/+9
| | | | | | | | | | | | - drop unused kinfo includes and link argument - detect kvm library necessity at configure step - fix variable typo
* | Make remaining number literals use uppercaseBenny Baumann2020-12-202-2/+2
| |
* | Minor typo and comment clarificationBenny Baumann2020-12-201-2/+2
|/
* Mark event arrays constChristian Göttsche2020-12-204-6/+6
|
* Use upper case numeric literalsChristian Göttsche2020-12-202-5/+5
| | | | See https://rules.sonarsource.com/c/RSPEC-818
* BarMeter: rework text paddingChristian Göttsche2020-12-201-17/+28
| | | | | | | | | | | | | | | | | | | | | | | | | | In case the text is too long for the bar, try to fit by truncating at a space character. E.g. [|24.1% 2000Mhz 40°C] [24.1% 2000Mhz 40°C] [||||24.1% 2000Mhz] [|||24.1% 2000Mhz] [||24.1% 2000Mhz] [|24.1% 2000Mhz] [24.1% 2000Mhz] [|||| 24.1%] [|||| 24.1%] [|||| 24.1%] [||||24.1%] [|||24.1%] [||24.1%] [|24.1%] [24.1%] [24.1] [24.] [24] [2]
* CPUMeter: drop minimum width of CPU usage in bar modeChristian Göttsche2020-12-201-1/+1
| | | | | The usage percentage is the first text, no need to set a minimum width. The BarMeter does already add padding.
* Meter: fix artifacts with very tiny widthChristian Göttsche2020-12-201-6/+10
| | | | | - The Bar Meter might override the right border - The TextMeter might wrap-around into the next line
* Remove duplicate newline in CRT_fatalError callsChristian Göttsche2020-12-191-4/+4
|
* Unhardcode tick-to-ms conversionAlexander Momchilov2020-12-195-16/+36
| | | | | | | | | Division by 100000.0 worked because `sysconf(_SC_CLK_TCK)` happened to be 100. By unhardcoding: 1) It becomes more clear what this 100000.0 figure comes from. 2) It protects against bugs in the case `sysconf(_SC_CLK_TCK)` ever changes.
* Mark Platform_defaultFields constChristian Göttsche2020-12-1915-15/+15
|
* Enable -Wformat=2Christian Göttsche2020-12-192-16/+14
| | | | | Now that the global format variable Process_pidFormat is gone, enable the compiler warning -Wformat=2.
* Merge Process_pidColumns into Process_fields and rework auto-fit for ↵Christian Göttsche2020-12-1921-205/+112
| | | | PID-like columns
* Rework enum ProcessFieldChristian Göttsche2020-12-1941-175/+208
| | | | | | Use only one enum instead of a global and a platform specific one. Drop Platform_numberOfFields global variable. Set known size of Process_fields array
* LinuxProcess: drop dead Process columnsChristian Göttsche2020-12-192-38/+0
|
* Split boilerplate and platform-independent field comparisonBenny Baumann2020-12-198-10/+23
| | | | | | | | This acheives two things: - Allows for simple tie-breaking if values compare equal (needed to make sorting the tree-view stable) - Allows for platform-dependent overriding of the sort-order for specific fields Also fixes a small oversight on DragonFlyBSD when default-sorting.
* Separate tree and list sort ordersHisham Muhammad2020-12-197-24/+54
| | | | | | | | | | | | 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. :)
* Add "Tree view is always sorted by PID" option to mimic htop 2 behaviorHisham Muhammad2020-12-197-6/+30
|
* Invert Process_compare resolution so that superclass matches run firstHisham Muhammad2020-12-1910-90/+51
| | | | | | | | | | * 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.
* Fix typoChristian Göttsche2020-12-181-1/+1
|
* ProcessList: save scan time in millisecondChristian Göttsche2020-12-182-3/+5
| | | | | The delay is saved in deciseconds, use a bigger resolution to avoid timing irregularities.
* Support clock_gettime() on OSX El Capitan and earlierChristian Göttsche2020-12-184-3/+41
|
* Update key mapping documentation for sortingBenny Baumann2020-12-182-5/+3
|
* Move macro definitions close to usageChristian Göttsche2020-12-162-4/+5
|
* Use common naming for bare enum typesChristian Göttsche2020-12-162-3/+3
|
* MainPanel: use actual KEY_RESIZE instead of KEY_SHUFFLEChristian Göttsche2020-12-161-1/+1
| | | | KEY_RESIZE (0632) is equal to KEY_SHUFFLE (0x19a)
* MainPanel: do not reset hideProcessSelection on KEY_SHUFFLEChristian Göttsche2020-12-151-1/+1
| | | | KEY_SHUFFLE might get send from time to time, e.g. in a tmux session.
* LibSensors: fix unversioned libsensors library nameChristian Göttsche2020-12-151-2/+2
|
* LibSensors: restore temperature for Raspberry PiChristian Göttsche2020-12-151-0/+3
| | | | | | | sensors output: cpu_thermal-virtual-0 Adapter: Virtual device temp1: +58.0 C (crit = +90.0 C)
* Meter: restore non-wide-character buildChristian Göttsche2020-12-151-0/+4
| | | | | | Use mbstowcs() only with wide ncurses support. Closes: #401
* Misc CRT cleanupChristian Göttsche2020-12-142-37/+28
|
* Handle absence of package CPU temperatureChristian Göttsche2020-12-143-44/+60
| | | | Resolves: #389

© 2014-2024 Faster IT GmbH | imprint | privacy policy