From f77acf9eaca7a8f1564e3bc4aa7eb33c8505e086 Mon Sep 17 00:00:00 2001 From: tommy Date: Tue, 29 Oct 2024 22:13:15 -0400 Subject: [PATCH] consider 95% or higher to be green --- src/client/utils/health.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/client/utils/health.ts b/src/client/utils/health.ts index ab1cae5..d9e1ddd 100644 --- a/src/client/utils/health.ts +++ b/src/client/utils/health.ts @@ -10,7 +10,7 @@ export function parseHealthStatusByPercent( percent: number, count: number ): HealthStatus { - if (percent === 100) { + if (percent > 95) { return 'health'; } else if (percent === 0 && count === 0) { return 'none';