Skip to content

Commit

Permalink
Fix footprint logic for metrics equal zero
Browse files Browse the repository at this point in the history
  • Loading branch information
spacehamster87 committed Feb 9, 2024
1 parent c897c8e commit 71386f8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions web/frontend/src/JobFootprint.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 71386f8

Please sign in to comment.