From 9d63d6e529d954cff5634e57fd8dac8ebcf26af1 Mon Sep 17 00:00:00 2001 From: iRakic Date: Wed, 8 Feb 2023 21:53:28 +0100 Subject: [PATCH] Fixing disk usage color --- pkg/df-pv/root.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/df-pv/root.go b/pkg/df-pv/root.go index 95fb910..60181b3 100644 --- a/pkg/df-pv/root.go +++ b/pkg/df-pv/root.go @@ -140,9 +140,9 @@ func GetColorFromPercentageUsed(percentageUsed float64) text.Color { if percentageUsed > 75 { return text.FgRed } else if percentageUsed < 25 { - return text.FgYellow - } else { return text.FgGreen + } else { + return text.FgYellow } }