summaryrefslogtreecommitdiffstats
path: root/zfs
diff options
context:
space:
mode:
authorRoss Williams <ross@ross-williams.net>2021-02-09 16:59:03 +0000
committerRoss Williams <ross@ross-williams.net>2021-02-09 17:07:00 +0000
commitf73c98abd44b9b38e095b402a8b72d614b40052b (patch)
tree377401a590ed763c8688e20957e3f4732f38c27b /zfs
parentf273bfd0837b955941462535d66a0c4076948ee9 (diff)
Forgot to correctly color ZFS ARC ratio
`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.
Diffstat (limited to 'zfs')
-rw-r--r--zfs/ZfsCompressedArcMeter.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/zfs/ZfsCompressedArcMeter.c b/zfs/ZfsCompressedArcMeter.c
index 92d82e99..4e5c89e6 100644
--- a/zfs/ZfsCompressedArcMeter.c
+++ b/zfs/ZfsCompressedArcMeter.c
@@ -54,7 +54,7 @@ static void ZfsCompressedArcMeter_display(const Object* cast, RichString* out) {
RichString_appendAscii(out, CRT_colors[METER_VALUE], buffer);
RichString_appendAscii(out, CRT_colors[METER_TEXT], " Compressed, ");
ZfsCompressedArcMeter_printRatioString(this, buffer, sizeof(buffer));
- RichString_appendAscii(out, CRT_colors[METER_VALUE], buffer);
+ RichString_appendAscii(out, CRT_colors[ZFS_RATIO], buffer);
RichString_appendAscii(out, CRT_colors[METER_TEXT], " Ratio");
} else {
RichString_writeAscii(out, CRT_colors[METER_TEXT], " ");

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