summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* Minor code simplificationBenny Baumann2023-12-261-3/+1
|
* Convince IWYU to keep size_t/ssize_t via stddef.hBenny Baumann2023-12-261-1/+1
|
* Force to keep explicit forward declarationsBenny Baumann2023-12-264-10/+10
|
* Update includes based on IWYUBenny Baumann2023-12-2667-83/+113
|
* Update list of special header mappings for IWYUBenny Baumann2023-12-261-0/+5
|
* Force configuration with clang for IWYU runsBenny Baumann2023-12-261-0/+1
| | | | This reduces the noise caused by incompatible attribute definitions between GCC/Clang.
* Use consistent style for process field output/compare functionsBenny Baumann2023-12-2610-17/+43
|
* Fix code styleBenny Baumann2023-12-2645-715/+685
|
* Check for large file support and some types we useBenny Baumann2023-12-261-0/+8
|
* Do not touch CFLAGS in configure.acBenny Baumann2023-12-262-9/+10
| | | | This fixes an inconsistency between tests run by ./configure and actual make
* Add includes for config.h as per the discussion in PR #1337Daniel Lange2023-12-2647-1/+98
| | | | | | 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.
* HeaderLayout: add "3 columns - 40/30/30", "... 30/40/30" & "... 30/30/40"Christian Hesse2023-12-261-0/+6
| | | | | Existing layouts with three columns do not match my needs... There is always a column too narrow. I think this would be a reasonable choice.
* Meter: use correct unicode characters for digit '9'Christian Hesse2023-12-251-1/+1
| | | | The bottom line was too short before...
* Bump github/codeql-action from 2 to 3dependabot[bot]2023-12-181-2/+2
| | | | | | | | | | | | | | | Bumps [github/codeql-action](https://github.com/github/codeql-action) from 2 to 3. - [Release notes](https://github.com/github/codeql-action/releases) - [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md) - [Commits](https://github.com/github/codeql-action/compare/v2...v3) --- updated-dependencies: - dependency-name: github/codeql-action dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com>
* Merge branch 'patch-2' (Update manual to mention KiB) of sparrowt/htopDaniel Lange2023-12-131-2/+4
|\
| * Review comments for memory size manual clarificationsTom Sparrow2023-12-131-4/+4
| |
| * Note in manual re default memory units of KiBTom Sparrow2023-12-111-1/+3
|/ | | Addresses https://github.com/htop-dev/htop/issues/1340
* Consolidate duplicate string constants in CGroup filtersBenny Baumann2023-12-111-33/+22
|
* Add PCP supportBenny Baumann2023-12-114-1/+21
|
* Add column for process container nameBenny Baumann2023-12-114-1/+29
|
* Add logic to filter the container name (+type) from the CGroup nameBenny Baumann2023-12-112-0/+142
|
* Merge branch 'main' of https://github.com/BowDown097/htop into BowDown097-mainNathan Scott2023-11-278-0/+15
|\
| * Update pcp/ProcessField.hBowDown0972023-11-261-1/+1
| |
| * Update linux/LinuxProcessTable.cBowDown0972023-11-261-2/+2
| | | | | | Co-authored-by: BenBE <BenBE@geshi.org>
| * Use printKBytesBowDown0972023-11-242-2/+2
| |
| * Linux + PCP: Add private memory size columnBowDown0972023-11-248-0/+15
| |
* | Fix a little header comment typo in the CGroupUtils codeNathan Scott2023-11-271-1/+1
| |
* | PCP platform implementation of the compressed cgroup columnNathan Scott2023-11-274-2/+27
|/
* Change NetworkIOMeter value unit from KiB/s to bytes/secondExplorer092023-11-241-4/+2
| | | | | | Improve precisions when drawing in bar meter mode. Signed-off-by: Kang-Che Sung <explorer09@gmail.com>
* Cache NetworkIOMeter values in 'double' typeExplorer092023-11-241-4/+4
| | | | Signed-off-by: Kang-Che Sung <explorer09@gmail.com>
* NetworkIOMeter: Cache the formatted "KiB/s" number stringsExplorer092023-11-241-8/+7
| | | | | | | | In NetworkIOMeter, the number strings of bytes per second are formatted with Meter_humanUnit(). As the numbers are only updated every 500 ms, it is good to cache the formatted strings. This saves code size. Signed-off-by: Kang-Che Sung <explorer09@gmail.com>
* DiskIOMeter: Cache the formatted "KiB/s" number stringsExplorer092023-11-241-14/+9
| | | | | | | | In DiskIOMeter, the number strings of bytes per second are formatted with Meter_humanUnit(). As the numbers are only updated every 500 ms, it is good to cache the formatted strings. This saves code size. Signed-off-by: Kang-Che Sung <explorer09@gmail.com>
* Use xSnprintf in Meter_humanUnit()Explorer092023-11-241-2/+2
|
* Rewrite Meter_humanUnit() to accept floating point valueExplorer092023-11-244-30/+43
| | | | | | | | | | | | | | | | | Since Meter_humanUnit() is often called with floating point values in Meter objects, rewrite the function to let it process `double` type natively, and save floating point to integer casts. The rewritten function: * Allows higher orders of magnitude including 'R' and 'Q', and addresses infinity. (The previous version has a maximum value of (2^64 - 1) representing 16 ZiB.) * Rounds values when they are in intervals (99.9, 100) and (9.99, 10), and displays them with correct precision (number of fraction digits). * Produces assertion error on negative and NaN values (undefined behavior). Signed-off-by: Kang-Che Sung <explorer09@gmail.com>
* Always update 'values' member of NetworkIOMeterExplorer092023-11-241-51/+58
| | | | | | | | | | | Always update the `values` member during the call of NetworkIOMeter_updateValues(). This makes the values of every instance of NetworkIOMeter consistent. The user might see non-zero bars (or graph) during the "stale" status of the meter after this commit. The side effect is not a bug. Signed-off-by: Kang-Che Sung <explorer09@gmail.com>
* Always update 'values' member of DiskIOMeterExplorer092023-11-241-37/+44
| | | | | | | | | | | Always update the `values` member during the call of DiskIOMeter_updateValues(). This makes the values of every instance of DiskIOMeter consistent. The user might see non-zero bars (or graph) during the "stale" status of the meter after this commit. The side effect is not a bug. Signed-off-by: Kang-Che Sung <explorer09@gmail.com>
* NetworkIOMeter: correct format string and code commentsExplorer092023-11-241-3/+3
|
* Use xSnprintf in DiskIOMeter_updateValues()Explorer092023-11-241-1/+1
|
* Cap DiskIOMeter "utilisation" percentage at 100%Explorer092023-11-241-1/+1
| | | | | | | When `cached_utilisation_diff` is capped, it would never be greater than `DiskIOMeter.total`. Signed-off-by: Kang-Che Sung <explorer09@gmail.com>
* Remove unused zswap pool size calculation from commit 71f5a80d9eNathan Scott2023-11-215-27/+0
| | | | | Quick discussion with Ivan confirmed this was a left-over from an earlier version of the zswap code and can be safely removed.
* PCP platform implementation of frontswap and zswap accountingNathan Scott2023-11-204-3/+46
|
* Shorten podman/libpod container IDs to 12 charactersBenny Baumann2023-11-191-0/+18
|
* Use memmove() for moving previous graph valuesExplorer092023-11-121-2/+1
| | | | | | | Reduce code size a little in GraphMeterMode_draw() when compiled in `-Os` mode. Signed-off-by: Kang-Che Sung <explorer09@gmail.com>
* Assert on BarMeterMode_characters lengthExplorer092023-11-121-0/+1
| | | | | | | | | The number of items of a Meter can exceed the length of BarMeterMode_characters array. (The CPU Meter is an example.) Item numbers exceeding the length are unplottable in a bar. Add an assertion to note the fact. Signed-off-by: Kang-Che Sung <explorer09@gmail.com>
* Write configuration to temporary file firstChristian Göttsche2023-11-111-1/+11
| | | | | | | | | | | | | | | Currently when the runtime configuration is saved to file the true configuration file is first truncated and then written to with each available option. If for any reason htop dies (e.g. program crash, or system shutdown) while still performing the output the configuration file might end up empty or corrupted. Write to a temporary file and rename at the end on success. As a side effect new configuration files are now created with a mode of 0600.
* Merge branch 'Explorer09-print-time-format'Nathan Scott2023-11-101-67/+50
|\
| * Merge branch 'print-time-format' of https://github.com/Explorer09/htop-1 ↵Nathan Scott2023-11-101-67/+50
|/| | | | | | | into Explorer09-print-time-format
| * Rewrite Row_printTime() with various improvementsExplorer092023-11-101-67/+50
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Change variable types of time values from signed to unsigned. * Change variable naming for consistency: `totalMinutes`, `totalHours`, `totalDays` for total values and `minutes`, `hours`, `days`, etc. for remainder values. (`years` remains an exception as there is no larger unit than years) * Use `unsigned long long` type for `years` value to prevent a potential overflow. * The time units are now evaluated from small to large, in the hopes that small values would print faster. (There is no performance test for this claim.) * The days unit is now printed when `totalHours` is at least 24. (Issue htop-dev#1317) There is room in the new code to revert to the old threshold (totalHours < 2400). Signed-off-by: Kang-Che Sung <explorer09@gmail.com>
* | Merge branch 'Explorer09-bar-meter-zero-total'Nathan Scott2023-11-101-6/+4
|\ \ | |/ |/|
| * Permit zero 'total' in meters; remove assertionExplorer092023-11-101-6/+4
|/ | | | | | | | | | | The `Meter.total` value may be 0 on BatteryMeter, SwapMeter, linux/HugePageMeter, linux/ZramMeter and others. In case of a zero total value, print an empty bar in bar meter mode. Also change GraphMeterMode_draw() so that it no longer writes back the `total` value if it is zero. Signed-off-by: Kang-Che Sung <explorer09@gmail.com>

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