Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Add includes for config.h as per the discussion in PR #1337 | Daniel Lange | 2023-12-26 | 1 | -0/+2 |
| | | | | | | Many thanks to @Explorer09 Kang-Che Sung (宋岡哲). Also add a #error stanza to XUtils.h in case somebody forgets the beautiful mess GNU forces on us. | ||||
* | Move shared memory next to used memory | Kevin Bracey | 2023-10-26 | 1 | -1/+1 |
| | | | | | | | | | Shared memory is less available than buffers, so move it left next to used memory. This is in preparation for including shared memory in the basic "in use" for the bar text. It would not make sense to sum a discontiguous region. | ||||
* | Correct pid_t type return from Platform_getMaxPid function | Nathan Scott | 2023-09-04 | 1 | -1/+1 |
| | | | | | | | Coverity scanning shows we end up passing an integer into the Row_setPidColumnWidth routine which requires a pid_t - update each platform to return the correct type (and never return -1 as a failure code, this was being ignored). | ||||
* | Adapt platform code for the new Machine base class | Nathan Scott | 2023-05-08 | 1 | -4/+3 |
| | | | | | Move host-centric data to new derived <Platform>Machine classes, separate from process-list-centric data. | ||||
* | Introduce Machine class for host-specific info (split from ProcessList) | Nathan Scott | 2023-05-08 | 1 | -10/+11 |
| | | | | | | | | | | | First stage in sanitizing the process list structure so that htop can support other types of lists too (cgroups, filesystems, ...), in the not-too-distant future. This introduces struct Machine for system-wide information while keeping process-list information in ProcessList (now much less). Next step is to propogate this separation into each platform, to match these core changes. | ||||
* | {Memory,Swap}Meter: add "compressed memory" metrics | Ivan Shapovalov | 2023-04-23 | 1 | -1/+3 |
| | | | | | | | | For now, the semantics are mostly fit for Linux zswap subsystem. For instance, we add the third swap usage metric that indicates the amount of memory that is accounted to swap but in fact stored elsewhere. This exactly matches the definition of frontswap/zswap, and is probably of little use to all other platforms. | ||||
* | Minor code formatting consistency fixes | Benny Baumann | 2023-04-11 | 1 | -1/+1 |
| | |||||
* | Improve CPU computation code | Guillaume Gomez | 2023-03-04 | 1 | -3/+1 |
| | |||||
* | Improve code readability by using enum values instead of raw numbers | Guillaume Gomez | 2023-03-04 | 1 | -4/+4 |
| | |||||
* | Implement File Descriptor Meter support for DragonflyBSD/FreeBSD/NetBSD | Benny Baumann | 2023-02-19 | 1 | -0/+7 |
| | |||||
* | Use strict function prototypes also for defintions | Christian Göttsche | 2023-02-04 | 1 | -2/+2 |
| | | | | | | | freebsd/Platform.c:151:23: error: a function declaration without a prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes] int Platform_getUptime() { ^ void | ||||
* | Improve code readability by creating constants for SWAP memory values | Guillaume Gomez | 2023-01-08 | 1 | -2/+2 |
| | |||||
* | Clean out Platform_getInodeFilename | наб | 2023-01-08 | 1 | -6/+0 |
| | | | | | | It's an artefact of the previous implementation of Platform_getProcessLocks for Linux, and is never used; there's no reason for it to have ever been exported | ||||
* | Improve code readability by creating constants for memory values | Guillaume Gomez | 2023-01-07 | 1 | -5/+5 |
| | |||||
* | Reformat code base | Benny Baumann | 2022-10-24 | 1 | -1/+1 |
| | | | | | | | | | | | | | | This includes: - Wrap function implementations - Pointer alignment for function signatures - Pointer alignment for variable declarations - Whitespace after keywords - Whitespace after comma - Whitespace around initializers - Whitespace around operators - Code indentation - Line break for single line statements - Misleading alignment | ||||
* | Ensure buffer for environment is large enough on NetBSD | Benny Baumann | 2022-05-06 | 1 | -1/+8 |
| | |||||
* | Use correct command field as default field | Christian Göttsche | 2021-12-17 | 1 | -1/+1 |
| | | | | | The default htop command process field has the enum identifier `COMM` but the name `Command` (`COMM` is the field name for /proc/<PID>/comm). | ||||
* | Mark ScreenDefaults const | Christian Göttsche | 2021-12-17 | 1 | -1/+1 |
| | |||||
* | Drop unused Platform variables | Christian Göttsche | 2021-12-17 | 1 | -2/+0 |
| | |||||
* | Introduce screen tabs | Hisham Muhammad | 2021-12-07 | 1 | -0/+10 |
| | | | | This is a forward port (by nathans) of Hisham's original code. | ||||
* | Early program termination only from main() | Volodymyr Vasiutyk | 2021-10-31 | 1 | -1/+2 |
| | |||||
* | Update license headers to explicitly say GPLv2+ | Daniel Lange | 2021-09-22 | 1 | -1/+1 |
| | |||||
* | NetBSD: misc const additions | Christian Göttsche | 2021-09-03 | 1 | -2/+2 |
| | |||||
* | NetBSD: fix reading environment variables of processes | Christian Göttsche | 2021-09-03 | 1 | -3/+3 |
| | | | | | kvm_getenvv(3) seems not to work with kvm_openfiles(..., KVM_NO_FILES, ...) | ||||
* | NetBSD: simplify Platform_setMemoryValues | Christian Göttsche | 2021-09-03 | 1 | -6/+3 |
| | |||||
* | Add combined memory and swap meter | Christian Göttsche | 2021-08-17 | 1 | -0/+2 |
| | | | | Closes: #699 | ||||
* | netbsd: Add NetworkIOMeter support | nia | 2021-08-13 | 1 | -3/+27 |
| | |||||
* | netbsd: handle repeated ENOMEM from HW_IOSTATS safely | nia | 2021-08-09 | 1 | -0/+5 |
| | |||||
* | netbsd: add more robust error handling for sysctl HW_IOSTATS | nia | 2021-08-09 | 1 | -9/+17 |
| | |||||
* | netbsd: Add support for DiskIOMeter | nia | 2021-08-09 | 1 | -3/+37 |
| | |||||
* | netbsd: Use newer proplib API. Create aliases so it works on 9.x. | nia | 2021-08-05 | 1 | -20/+26 |
| | | | | | This way we avoid deprecation warnings on the development branch of NetBSD while keeping the code functioning on the stable branch. | ||||
* | netbsd: If at least one AC adapter is connected, keep its state. | nia | 2021-08-05 | 1 | -1/+1 |
| | |||||
* | netbsd: style: declare variables on first use rather than C89-style | nia | 2021-08-05 | 1 | -24/+18 |
| | |||||
* | netbsd: Add battery support | nia | 2021-08-05 | 1 | -3/+103 |
| | | | | | | This uses proplib and sysmon_envsys to determine the total charge percentage of any number of connected batteries as well as the AC adapter state. Should work with ACPI and non-ACPI systems. | ||||
* | NetBSD: Rework CPU counting. | fraggerfox | 2021-08-05 | 1 | -1/+1 |
| | |||||
* | netbsd: Support display of CPU frequency | nia | 2021-07-21 | 1 | -0/+1 |
| | |||||
* | Code indentation | Benny Baumann | 2021-07-15 | 1 | -5/+5 |
| | |||||
* | netbsd: Fix display of in-use and cached memory | nia | 2021-07-13 | 1 | -1/+0 |
| | |||||
* | Redo the memory values based on the other BSD implementations. | fraggerfox | 2021-06-26 | 1 | -1/+3 |
| | |||||
* | Fixes minor whitespace issues and re-arrange headers to conform to style guide. | fraggerfox | 2021-06-26 | 1 | -2/+2 |
| | |||||
* | Renames variable from opl to npl for consistency. | fraggerfox | 2021-06-26 | 1 | -2/+2 |
| | |||||
* | Fix include paths and minor whitespace issues | fraggerfox | 2021-06-26 | 1 | -3/+3 |
| | |||||
* | Replace strlcpy() by safer String_safeStrncpy() | fraggerfox | 2021-06-26 | 1 | -1/+1 |
| | |||||
* | Replace maximum_PID value with INT32_MAX | fraggerfox | 2021-06-26 | 1 | -2/+3 |
| | | | | Thank you @niacat. | ||||
* | Update copyright notices | Benny Baumann | 2021-06-26 | 1 | -0/+2 |
| | |||||
* | Minor code clean up and corrections. | fraggerfox | 2021-06-26 | 1 | -57/+1 |
| | |||||
* | Add NetBSD platform support without procfs dependency | fraggerfox | 2021-06-26 | 1 | -0/+380 |
- TODO, clean up the code base and update comments in code. |