commit | f15189e352b713d4c7e6b88fc5ea9f9d0141893e | [log] [tgz] |
---|---|---|
author | Matt Spinler <spinler@us.ibm.com> | Fri Jan 15 10:13:28 2021 -0600 |
committer | Matt Spinler <spinler@us.ibm.com> | Fri Jan 15 10:22:37 2021 -0600 |
tree | a34d446535084cce3aad6a5a51e0c910d927c678 | |
parent | ce67522893c96e967fdcad5d105125ee92c3221c [diff] |
Use NaN for missing warning/crit threshold values Handle loading the Warning and Critical threshold interfaces like the hard/soft shutdown ones and use NaN if a low or high value is missing in the JSON, assuming the other one is there. Using NaN means the threshold alarm will never be tripped for that property. Signed-off-by: Matt Spinler <spinler@us.ibm.com> Change-Id: Ib6b6d3a657df8e77ea4c7e5a491ea367693c5951