From 71386f8466937dbf49cab7ffbc5edc7060a416f6 Mon Sep 17 00:00:00 2001 From: Christoph Kluge Date: Fri, 9 Feb 2024 17:09:08 +0100 Subject: [PATCH] Fix footprint logic for metrics equal zero --- web/frontend/src/JobFootprint.svelte | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web/frontend/src/JobFootprint.svelte b/web/frontend/src/JobFootprint.svelte index daecb0b..e4839af 100644 --- a/web/frontend/src/JobFootprint.svelte +++ b/web/frontend/src/JobFootprint.svelte @@ -111,12 +111,12 @@ else return (mean <= thresholds.peak && mean > thresholds.normal) case 'alert': if (metric === 'mem_used') return (mean <= thresholds.alert && mean > thresholds.caution) - else return (mean <= thresholds.alert && mean > 0) + else return (mean <= thresholds.alert && mean >= 0) case 'caution': if (metric === 'mem_used') return (mean <= thresholds.caution && mean > thresholds.normal) else return (mean <= thresholds.caution && mean > thresholds.alert) case 'normal': - if (metric === 'mem_used') return (mean <= thresholds.normal && mean > 0) + if (metric === 'mem_used') return (mean <= thresholds.normal && mean >= 0) else return (mean <= thresholds.normal && mean > thresholds.caution) default: return false