mirror of
https://github.com/ClusterCockpit/cc-backend
synced 2024-12-26 05:19:05 +01:00
Fix footprint logic for metrics equal zero
This commit is contained in:
parent
c897c8e56b
commit
71386f8466
@ -111,12 +111,12 @@
|
|||||||
else return (mean <= thresholds.peak && mean > thresholds.normal)
|
else return (mean <= thresholds.peak && mean > thresholds.normal)
|
||||||
case 'alert':
|
case 'alert':
|
||||||
if (metric === 'mem_used') return (mean <= thresholds.alert && mean > thresholds.caution)
|
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':
|
case 'caution':
|
||||||
if (metric === 'mem_used') return (mean <= thresholds.caution && mean > thresholds.normal)
|
if (metric === 'mem_used') return (mean <= thresholds.caution && mean > thresholds.normal)
|
||||||
else return (mean <= thresholds.caution && mean > thresholds.alert)
|
else return (mean <= thresholds.caution && mean > thresholds.alert)
|
||||||
case 'normal':
|
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)
|
else return (mean <= thresholds.normal && mean > thresholds.caution)
|
||||||
default:
|
default:
|
||||||
return false
|
return false
|
||||||
|
Loading…
Reference in New Issue
Block a user