summaryrefslogtreecommitdiffstats
path: root/zfs/ZfsCompressedArcMeter.c
AgeCommit message (Collapse)Author
2024-05-22Explicitly specify supported modes of all metersExplorer09
This reduces code size by not needing to check if 'supportedModes' is zero.
2023-12-26Add includes for config.h as per the discussion in PR #1337Daniel Lange
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.
2021-09-22Update license headers to explicitly say GPLv2+Daniel Lange
2021-05-10platform-dependent files included relative to main source directorymayurdahibhate
2021-05-10cleaned up includes with iwyumayurdahibhate
2021-04-26Use RichString_appendnAscii where possibleChristian Göttsche
`RichString_appendnAscii()` avoids a `strlen(3)` call over ` RichString_appendAscii()`. Use the former where the length is available from a previous checked `snprintf(3)` call. Keep `RichString_appendAscii()` when passing a string literal and rely on compilers to optimize the `strlen(3)` call away.
2021-04-22ZfsCompressedArcMeter: avoid division by 0Christian Göttsche
On systems not using ZFS `this->values[0]` is zero.
2021-03-04Save text buffer in MeterChristian Göttsche
2021-02-09Make ZFS Meter "Unavailable" text match others -> FAILED_READ coloringDaniel Lange
2021-02-09Forgot to correctly color ZFS ARC ratioRoss Williams
`ZFS_RATIO` in `CRT.c` was unused, because I forgot to colorize the ARC ratio in the Compressed ARC meter. The intent was to improve readability of the meter by highlighting the most relevant value, the ratio, in a brighter color, for most themes. This change effects that intent.
2020-12-08Split RichString_(append|appendn|write) into wide and asciiChristian Göttsche
RichString_writeFrom takes a top spot during performance analysis due to the calls to mbstowcs() and iswprint(). Most of the time we know in advance that we are only going to print regular ASCII characters.
2020-12-08Use sizeof buffer instead of magic numberChristian Göttsche
2020-12-06Use size_t as len type for Meter_UpdateValuesChristian Göttsche
Most of the time the parameter is passed to snprintf type functions
2020-11-22Reduce scope of local variablesBenny Baumann
2020-11-02Spacing around operatorsBenny Baumann
2020-10-26Hold only a const version of the ProcessList in MetersChristian Göttsche
2020-10-18Make all required includes explicitBenny Baumann
Information as seen by IWYU 0.12 + clang 9 on Linux
2020-10-16Rename StringUtils.[ch] to XUtils.[ch]Benny Baumann
2020-10-16Move xAsprintf, xSnprintf and xStrdup to StringUtils.hBenny Baumann
2020-10-13Mark remaining classes constChristian Göttsche
2020-10-10Mark Object pointer to _display function constChristian Göttsche
2020-10-05Update License consistently to GPLv2 as per COPYING fileDaniel Lange
2019-09-03Support for ZFS Compressed ARC statisticsRoss Williams