Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Bump version number for 3.0.4 release3.0.4 | Nathan Scott | 2020-12-22 | 2 | -1/+32 |
| | |||||
* | Merge branch 'misc' of https://github.com/cgzones/htop into cgzones-misc | Christian Göttsche | 2020-12-22 | 6 | -35/+25 |
|\ | |||||
| * | Panel_init: initialize selectedLen member | Christian Göttsche | 2020-12-21 | 1 | -0/+1 |
| | | |||||
| * | EnvScreen: mark local class functions static | Christian Göttsche | 2020-12-21 | 2 | -15/+11 |
| | | |||||
| * | TraceScreen: mark local class functions static | Christian Göttsche | 2020-12-21 | 2 | -19/+13 |
| | | |||||
| * | InfoScreen: drop unused member | Christian Göttsche | 2020-12-21 | 1 | -1/+0 |
| | | |||||
* | | Resolve clang-analyzer signed/unsigned comparison CI failure | Nathan Scott | 2020-12-22 | 1 | -2/+2 |
| | | |||||
* | | Merge branch 'harden_makecommandstr' of https://github.com/BenBE/htop into ↵ | Nathan Scott | 2020-12-22 | 1 | -2/+15 |
|\ \ | | | | | | | | | | BenBE-harden_makecommandstr | ||||
| * | | DiD: Ensure string offsets are inside string boundaries | Benny Baumann | 2020-12-21 | 1 | -0/+6 |
| | | | |||||
| * | | Avoid NULL dereference on zombie processes | Benny Baumann | 2020-12-21 | 1 | -2/+9 |
| |/ | | | | | | | Fixes #361 | ||||
* | | Merge branch 'resize_bar' of https://github.com/cgzones/htop into ↵ | Nathan Scott | 2020-12-22 | 15 | -93/+97 |
|\ \ | |/ |/| | | | cgzones-resize_bar | ||||
| * | MetersPanel: drop color interruption in FunctionBar | Christian Göttsche | 2020-12-20 | 1 | -2/+2 |
| | | |||||
| * | Use variable-length-array instead of small dynamic allocation | Christian Göttsche | 2020-12-20 | 1 | -2/+2 |
| | | |||||
| * | Rework drawing of FunctionBar | Christian Göttsche | 2020-12-20 | 14 | -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 configuration | Benny Baumann | 2020-12-21 | 1 | -0/+41 |
| | | |||||
* | | De-lazy @cgzones :) | Daniel Lange | 2020-12-21 | 1 | -2/+2 |
| | | |||||
* | | Action: sort key binding assignments | Christian Göttsche | 2020-12-21 | 1 | -47/+46 |
| | | | | | | | | Avoid accidental duplicate usage. | ||||
* | | DragonFlyBSD update | Christian Göttsche | 2020-12-20 | 4 | -28/+18 |
| | | | | | | | | | | - move some functions to file scope - drop unused global variable | ||||
* | | DragonFlyBSD update | Christian Göttsche | 2020-12-20 | 4 | -6/+9 |
| | | | | | | | | | | | | - drop unused kinfo includes and link argument - detect kvm library necessity at configure step - fix variable typo | ||||
* | | Make remaining number literals use uppercase | Benny Baumann | 2020-12-20 | 2 | -2/+2 |
| | | |||||
* | | Minor typo and comment clarification | Benny Baumann | 2020-12-20 | 1 | -2/+2 |
|/ | |||||
* | Mark event arrays const | Christian Göttsche | 2020-12-20 | 4 | -6/+6 |
| | |||||
* | Use upper case numeric literals | Christian Göttsche | 2020-12-20 | 2 | -5/+5 |
| | | | | See https://rules.sonarsource.com/c/RSPEC-818 | ||||
* | BarMeter: rework text padding | Christian Göttsche | 2020-12-20 | 1 | -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 mode | Christian Göttsche | 2020-12-20 | 1 | -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 width | Christian Göttsche | 2020-12-20 | 1 | -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 calls | Christian Göttsche | 2020-12-19 | 1 | -4/+4 |
| | |||||
* | Unhardcode tick-to-ms conversion | Alexander Momchilov | 2020-12-19 | 5 | -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 const | Christian Göttsche | 2020-12-19 | 15 | -15/+15 |
| | |||||
* | Enable -Wformat=2 | Christian Göttsche | 2020-12-19 | 2 | -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öttsche | 2020-12-19 | 21 | -205/+112 |
| | | | | PID-like columns | ||||
* | Rework enum ProcessField | Christian Göttsche | 2020-12-19 | 41 | -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 columns | Christian Göttsche | 2020-12-19 | 2 | -38/+0 |
| | |||||
* | Split boilerplate and platform-independent field comparison | Benny Baumann | 2020-12-19 | 8 | -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 orders | Hisham Muhammad | 2020-12-19 | 7 | -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 behavior | Hisham Muhammad | 2020-12-19 | 7 | -6/+30 |
| | |||||
* | Invert Process_compare resolution so that superclass matches run first | Hisham Muhammad | 2020-12-19 | 10 | -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 typo | Christian Göttsche | 2020-12-18 | 1 | -1/+1 |
| | |||||
* | ProcessList: save scan time in millisecond | Christian Göttsche | 2020-12-18 | 2 | -3/+5 |
| | | | | | The delay is saved in deciseconds, use a bigger resolution to avoid timing irregularities. | ||||
* | Support clock_gettime() on OSX El Capitan and earlier | Christian Göttsche | 2020-12-18 | 4 | -3/+41 |
| | |||||
* | Update key mapping documentation for sorting | Benny Baumann | 2020-12-18 | 2 | -5/+3 |
| | |||||
* | Move macro definitions close to usage | Christian Göttsche | 2020-12-16 | 2 | -4/+5 |
| | |||||
* | Use common naming for bare enum types | Christian Göttsche | 2020-12-16 | 2 | -3/+3 |
| | |||||
* | MainPanel: use actual KEY_RESIZE instead of KEY_SHUFFLE | Christian Göttsche | 2020-12-16 | 1 | -1/+1 |
| | | | | KEY_RESIZE (0632) is equal to KEY_SHUFFLE (0x19a) | ||||
* | MainPanel: do not reset hideProcessSelection on KEY_SHUFFLE | Christian Göttsche | 2020-12-15 | 1 | -1/+1 |
| | | | | KEY_SHUFFLE might get send from time to time, e.g. in a tmux session. | ||||
* | LibSensors: fix unversioned libsensors library name | Christian Göttsche | 2020-12-15 | 1 | -2/+2 |
| | |||||
* | LibSensors: restore temperature for Raspberry Pi | Christian Göttsche | 2020-12-15 | 1 | -0/+3 |
| | | | | | | | sensors output: cpu_thermal-virtual-0 Adapter: Virtual device temp1: +58.0 C (crit = +90.0 C) | ||||
* | Meter: restore non-wide-character build | Christian Göttsche | 2020-12-15 | 1 | -0/+4 |
| | | | | | | Use mbstowcs() only with wide ncurses support. Closes: #401 | ||||
* | Misc CRT cleanup | Christian Göttsche | 2020-12-14 | 2 | -37/+28 |
| | |||||
* | Handle absence of package CPU temperature | Christian Göttsche | 2020-12-14 | 3 | -44/+60 |
| | | | | Resolves: #389 |