Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | PressureStallMeter: improve display strings | Christian Göttsche | 2020-12-02 | 1 | -12/+19 | |
| | | | | | - Shorten name for header setup menu - Improve caption in bar mode | |||||
* | Meter: document MeterClass string fields | Christian Göttsche | 2020-12-02 | 1 | -4/+4 | |
| | ||||||
* | Use String_eq for readability and consistency | Christian Göttsche | 2020-12-02 | 1 | -3/+3 | |
| | ||||||
* | Add cast to unsigned char to avoid signed char misuse | Christian Göttsche | 2020-12-02 | 1 | -1/+1 | |
| | ||||||
* | Merge identical conditional branches | Christian Göttsche | 2020-12-02 | 2 | -6/+2 | |
| | ||||||
* | Drop redundant return statements | Christian Göttsche | 2020-12-02 | 1 | -2/+0 | |
| | ||||||
* | Compare indices not index with pair | Christian Göttsche | 2020-12-02 | 1 | -1/+1 | |
| | | | | | | Fixes always true condition. Found by LGTM.com | |||||
* | Use enum element name instead of magic number | Christian Göttsche | 2020-12-02 | 1 | -1/+2 | |
| | ||||||
* | Fix a little typo (spelling) in the styleguide | Nathan Scott | 2020-12-01 | 1 | -2/+2 | |
| | ||||||
* | Merge branch 'styleguide-tweak' of https://github.com/natoscott/htop into ↵ | Nathan Scott | 2020-12-01 | 1 | -14/+53 | |
|\ | | | | | | | natoscott-styleguide-tweak | |||||
| * | Update docs/styleguide.md | Nathan Scott | 2020-12-01 | 1 | -1/+1 | |
| | | | | | | Co-authored-by: BenBE <BenBE@geshi.org> | |||||
| * | Tweak style guide wording around single code statements | Nathan Scott | 2020-11-28 | 1 | -14/+53 | |
| | | | | | | | | | | | | | | | | | | | | There was wording about brace-enclosing single code statements being 'strongly encouraged' - this isn't consistently used and IMO it introduces unnecessary noise in otherwise neat, concise code. I've reworded (dropped) this section and also fixed a handful of minor typos while reading this doc a little more carefully. | |||||
* | | Print G in gigabyte color | Christian Göttsche | 2020-11-29 | 1 | -1/+2 | |
| | | | | | | | | When printing a size like 27.2G print the G like the 27 in the gigabyte color. | |||||
* | | Implement Hashtable_clear to empty an existing Hashtable | Benny Baumann | 2020-11-29 | 2 | -4/+14 | |
| | | ||||||
* | | Linux: fix process parsing for hidden pid directories | Christian Göttsche | 2020-11-29 | 1 | -2/+2 | |
| | | ||||||
* | | Typo | Christian Göttsche | 2020-11-28 | 1 | -1/+1 | |
| | | ||||||
* | | Typo fix in docs | Benny Baumann | 2020-11-28 | 1 | -1/+1 | |
| | | ||||||
* | | Include documentation for COMM and EXE | Benny Baumann | 2020-11-28 | 1 | -0/+6 | |
| | | ||||||
* | | Hide process selection on ESC | Christian Göttsche | 2020-11-28 | 8 | -7/+13 | |
| | | | | | | | | | | | | Do not highlight the current process line after pressing ESC in the main screen. Restore after pressing any key. | |||||
* | | Update even more snprintfs | Christian Göttsche | 2020-11-28 | 6 | -14/+14 | |
| | | | | | | | | Use size of actual buffers instead of magic numbers | |||||
* | | Replace more snprintfs, reduce buffer sizes to what is printed | Daniel Lange | 2020-11-28 | 1 | -19/+19 | |
| | | ||||||
* | | Use 'N/A' instead of 'no perm' for more consistency | Benny Baumann | 2020-11-28 | 2 | -8/+11 | |
| | | ||||||
* | | Fix reading of device nodes > 2 chars from memory maps | Daniel Lange | 2020-11-28 | 1 | -4/+4 | |
| | | ||||||
* | | configure: do not check functions we are using unconditionally | Christian Göttsche | 2020-11-28 | 1 | -1/+6 | |
| | | ||||||
* | | Add compat mode for systems without openat(2) | Christian Göttsche | 2020-11-28 | 5 | -42/+111 | |
| | | ||||||
* | | LinuxProcessList: use openat instead of building path strings | Christian Göttsche | 2020-11-28 | 1 | -96/+97 | |
| | | | | | | | | openat() is available since Linux 2.6.16 | |||||
* | | Drop unused global ProcessList memory fields | Nathan Scott | 2020-11-27 | 5 | -24/+3 | |
| | | | | | | | | | | | | | | | | | | | | The global ProcessList structure contains a couple of unused fields. 'sharedMem' has never been used by any Meter, since its not been anything other than zero in Linux /proc/meminfo for many, many years. The freeMem field is only used in the usedMem calculation, so it can reside on the stack like some other memory variables used within-calculations-only and not exposed to the user via a Meter. | |||||
* | | Drop unneeded parameters to the ScreenManager constructor | Nathan Scott | 2020-11-26 | 5 | -46/+31 | |
| | | | | | | | | | | | | | | | | | | | | All calls to ScreenManager_new always pass the same first five values, the orientation is always HORIZONTAL and the y1 parameter is always the height of the passed-in header struct pointer. I think its safe to assert at this point that no VERTICAL orientation will arrive (if it does, its no harm in re-adding this then) - so we can remove unused conditionals (and TODOs) based on orientation too. | |||||
* | | Make casing of N/A consistent (majority was N/A) | Benny Baumann | 2020-11-26 | 1 | -1/+1 | |
| | | ||||||
* | | Randomly refresh M_LRS calculation, but latest after 2s | Benny Baumann | 2020-11-26 | 1 | -8/+7 | |
| | | ||||||
* | | Distinguish display of no permissions for reading M_LRS | Benny Baumann | 2020-11-26 | 1 | -1/+9 | |
| | | ||||||
* | | Roll our own strtoull implementation specialized to handle the parsing ↵ | Benny Baumann | 2020-11-26 | 1 | -20/+54 | |
| | | | | | | | | requirements | |||||
* | | Hardcode actual conversions to read the maps file data | Benny Baumann | 2020-11-26 | 1 | -8/+49 | |
| | | ||||||
* | | Only calculate M_LRS size every 5 seconds | Benny Baumann | 2020-11-26 | 2 | -3/+22 | |
| | | ||||||
* | | Calculate library size (M_LRS column) from maps file | Fynn Wulf | 2020-11-26 | 6 | -14/+89 | |
| | | ||||||
* | | IOPriorityPanel: drop unnecessary buffer size decrement | Christian Göttsche | 2020-11-26 | 1 | -1/+1 | |
| | | | | | | | | xSnprintf guarantees null-termination within the passed size. | |||||
* | | configure: create typedefs for fixed-sized integers if needed | Christian Göttsche | 2020-11-26 | 1 | -0/+4 | |
| | | | | | | | | | | | | If not defined in stdint.h or inttypes.h See https://www.gnu.org/software/autoconf/manual/autoconf-2.62/html_node/Particular-Types.html | |||||
* | | Fix crash when getCommandStr not overloaded for a platform process | Christian Göttsche | 2020-11-26 | 1 | -1/+1 | |
| | | | | | | | | Closes: #343 | |||||
* | | LinuxProcessList_recurseProcTree: compute time only once and mark parent const | Christian Göttsche | 2020-11-25 | 1 | -5/+6 | |
| | | ||||||
* | | Track file descriptors in valgrind script | Christian Göttsche | 2020-11-25 | 1 | -1/+1 | |
| | | ||||||
* | | Drop taskstats conditional | Christian Göttsche | 2020-11-25 | 6 | -38/+11 | |
| | | | | | | | | | | | | | | | | | | | | taskstats is only checked on runtime if the column RCHAR, WCHAR, SYSCR, SYSCW, RBYTES, WBYTES, CNCLWB, IO_READ_RATE, IO_WRITE_RATE or IO_RATE is selected. taskstats is currently enabled by default. Drop the taskstats configuration switch, to reduce the maintenance cost. | |||||
* | | Drop cgroup conditional | Christian Göttsche | 2020-11-25 | 6 | -30/+6 | |
| | | | | | | | | | | | | | | | | | | cgroup is only checked on runtime if the column CGROUP is selected. cgroup is currently disabled by default, but most distributions do enable it. Drop the cgroup configuration switch, to reduce the maintenance cost. | |||||
* | | Add support to change numeric options in settings screen | Christian Göttsche | 2020-11-25 | 12 | -153/+330 | |
| | | | | | | | | Like delay or highlightDelaySecs | |||||
* | | Fully support non-ascii characters in Meter-Bar | Christian Göttsche | 2020-11-25 | 3 | -8/+28 | |
| | | | | | | | | | | | | | | | | | | | | Currently the code does not handle multi-byte characters, so length- computations take the raw count of C characters and not the to displayed size into account. An example is the degree sign for temperatures. Closes: #329 | |||||
* | | LinuxProcessList: fix misspelling | Christian Göttsche | 2020-11-25 | 1 | -5/+5 | |
| | | ||||||
* | | Unify naming of first argument of Platform_getBattery | Christian Göttsche | 2020-11-25 | 11 | -36/+36 | |
| | | | | | | | | Use percent throughout | |||||
* | | Improve Fahrenheit temperature configuration text | Christian Göttsche | 2020-11-25 | 1 | -1/+1 | |
| | | ||||||
* | | ProcessLocksScreen_draw: use Process_getCommand instead of raw comm | Christian Göttsche | 2020-11-25 | 1 | -1/+1 | |
| | | ||||||
* | | Fix file descriptor leak in LinuxProcessList_readCmdlineFile after xread failure | Christian Göttsche | 2020-11-24 | 1 | -1/+3 | |
| | | | | | | | | Found by Coverity | |||||
* | | Include comm before cmdline if exe could not be read, but comm mismatches ↵ | Benny Baumann | 2020-11-24 | 3 | -2/+35 | |
| | | | | | | | | | | | | basename from cmdline Also highlights entries where exe was marked deleted |