diff --git a/web/frontend/src/JobFootprint.svelte b/web/frontend/src/JobFootprint.svelte index e860e04..30034c0 100644 --- a/web/frontend/src/JobFootprint.svelte +++ b/web/frontend/src/JobFootprint.svelte @@ -106,19 +106,19 @@ }) function evalFootprint(metric, mean, thresholds, level) { - // mem_used has inverse logic regarding threshold levels + // mem_used has inverse logic regarding threshold levels, notify levels triggered if mean > threshold switch (level) { case 'peak': - if (metric === 'mem_used') return (mean <= thresholds.peak && mean > thresholds.alert) + if (metric === 'mem_used') return false // mem_used over peak -> return false to trigger impact -1 else return (mean <= thresholds.peak && mean > thresholds.normal) case 'alert': - if (metric === 'mem_used') return (mean <= thresholds.alert && mean > thresholds.caution) + if (metric === 'mem_used') return (mean <= thresholds.peak && mean >= thresholds.alert) else return (mean <= thresholds.alert && mean >= 0) case 'caution': - if (metric === 'mem_used') return (mean <= thresholds.caution && mean > thresholds.normal) + if (metric === 'mem_used') return (mean < thresholds.alert && mean >= thresholds.caution) 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.caution && mean >= 0) else return (mean <= thresholds.normal && mean > thresholds.caution) default: return false