From 09e258557365eec9b617ab544be0da07784ceb42 Mon Sep 17 00:00:00 2001 From: Konstantin Aladyshev Date: Tue, 17 Nov 2020 19:54:29 +0300 Subject: Add thresholds for Fan sensors Add lower/upper non-critical/critical tresholds for Fan sensors Signed-off-by: Konstantin Aladyshev Change-Id: I8588af6e1fb6a3a9f74730de3f3ab0cee0110962 --- src/store/modules/Health/SensorsStore.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/store') diff --git a/src/store/modules/Health/SensorsStore.js b/src/store/modules/Health/SensorsStore.js index 1c0de0db..0af2a95b 100644 --- a/src/store/modules/Health/SensorsStore.js +++ b/src/store/modules/Health/SensorsStore.js @@ -71,10 +71,13 @@ const SensorsStore = { const sensorData = []; Fans.forEach((sensor) => { sensorData.push({ - // TODO: add upper/lower threshold name: sensor.Name, status: sensor.Status.Health, currentValue: sensor.Reading, + lowerCaution: sensor.LowerThresholdNonCritical, + upperCaution: sensor.UpperThresholdNonCritical, + lowerCritical: sensor.LowerThresholdCritical, + upperCritical: sensor.UpperThresholdCritical, units: sensor.ReadingUnits, }); }); -- cgit v1.2.3