consider 95% or higher to be green

This commit is contained in:
tommy 2024-10-29 22:13:15 -04:00 committed by moonrailgun
parent 325ab38fbb
commit f77acf9eac

View File

@ -10,7 +10,7 @@ export function parseHealthStatusByPercent(
percent: number, percent: number,
count: number count: number
): HealthStatus { ): HealthStatus {
if (percent === 100) { if (percent > 95) {
return 'health'; return 'health';
} else if (percent === 0 && count === 0) { } else if (percent === 0 && count === 0) {
return 'none'; return 'none';