clearfog: relax voltage thresholds a bit
One box currently reports 5.218V at the 5V rail of the PDU. My volt
meter shows 5.103V at the ATX connector. Let's not be too strict about
this and relax all of these voltage thresholds a little bit, it's still
in-spec.
Change-Id: Id628722c6a4c7b81056a0d8379a63170fc6a08f7
diff --git a/src/ietf-hardware/Factory.cpp b/src/ietf-hardware/Factory.cpp
index ea1f97f..e727d12 100644
--- a/src/ietf-hardware/Factory.cpp
+++ b/src/ietf-hardware/Factory.cpp
@@ -31,10 +31,10 @@
pduHwmon,
1,
Thresholds<int64_t>{
- .criticalLow = OneThreshold<int64_t>{11640, 50},
- .warningLow = OneThreshold<int64_t>{11790, 50},
- .warningHigh = OneThreshold<int64_t>{12450, 50},
- .criticalHigh = OneThreshold<int64_t>{12600, 50},
+ .criticalLow = OneThreshold<int64_t>{11300, 50},
+ .warningLow = OneThreshold<int64_t>{11500, 50},
+ .warningHigh = OneThreshold<int64_t>{12500, 50},
+ .criticalHigh = OneThreshold<int64_t>{12700, 50},
}));
pduGroup.registerDataReader(SysfsValue<SensorType::Current>("ne:pdu:current-12V", "ne:pdu", pduHwmon, 1));
pduGroup.registerDataReader(SysfsValue<SensorType::Power>("ne:pdu:power-12V", "ne:pdu", pduHwmon, 1));
@@ -74,10 +74,10 @@
pduHwmon,
2,
Thresholds<int64_t>{
- .criticalLow = OneThreshold<int64_t>{4800, 50},
- .warningLow = OneThreshold<int64_t>{4900, 50},
- .warningHigh = OneThreshold<int64_t>{5150, 50},
- .criticalHigh = OneThreshold<int64_t>{5250, 50},
+ .criticalLow = OneThreshold<int64_t>{4600, 50},
+ .warningLow = OneThreshold<int64_t>{4700, 50},
+ .warningHigh = OneThreshold<int64_t>{5300, 50},
+ .criticalHigh = OneThreshold<int64_t>{5400, 50},
}));
pduGroup.registerDataReader(SysfsValue<SensorType::Current>("ne:pdu:current-5V", "ne:pdu", pduHwmon, 2));
pduGroup.registerDataReader(SysfsValue<SensorType::Power>("ne:pdu:power-5V", "ne:pdu", pduHwmon, 2));
@@ -87,10 +87,10 @@
pduHwmon,
3,
Thresholds<int64_t>{
- .criticalLow = OneThreshold<int64_t>{3170, 25},
- .warningLow = OneThreshold<int64_t>{3240, 25},
+ .criticalLow = OneThreshold<int64_t>{3100, 25},
+ .warningLow = OneThreshold<int64_t>{3200, 25},
.warningHigh = OneThreshold<int64_t>{3400, 25},
- .criticalHigh = OneThreshold<int64_t>{3470, 25},
+ .criticalHigh = OneThreshold<int64_t>{3500, 25},
}));
pduGroup.registerDataReader(SysfsValue<SensorType::Current>("ne:pdu:current-3V3", "ne:pdu", pduHwmon, 3));
pduGroup.registerDataReader(SysfsValue<SensorType::Power>("ne:pdu:power-3V3", "ne:pdu", pduHwmon, 3));
diff --git a/src/ietf-hardware/FspYhPsu.cpp b/src/ietf-hardware/FspYhPsu.cpp
index eb95688..a542880 100644
--- a/src/ietf-hardware/FspYhPsu.cpp
+++ b/src/ietf-hardware/FspYhPsu.cpp
@@ -169,10 +169,10 @@
m_hwmon,
2,
Thresholds<int64_t>{
- .criticalLow = OneThreshold<int64_t>{11640, 50},
- .warningLow = OneThreshold<int64_t>{11790, 50},
- .warningHigh = OneThreshold<int64_t>{12450, 50},
- .criticalHigh = OneThreshold<int64_t>{12600, 50},
+ .criticalLow = OneThreshold<int64_t>{11300, 50},
+ .warningLow = OneThreshold<int64_t>{11500, 50},
+ .warningHigh = OneThreshold<int64_t>{12500, 50},
+ .criticalHigh = OneThreshold<int64_t>{12700, 50},
}));
registerReader(SysfsValue<SensorType::Power>(m_namePrefix + ":power-in", m_namePrefix, m_hwmon, 1));
registerReader(SysfsValue<SensorType::Power>(m_namePrefix + ":power-out", m_namePrefix, m_hwmon, 2));
@@ -192,10 +192,10 @@
m_hwmon,
3,
Thresholds<int64_t>{
- .criticalLow = OneThreshold<int64_t>{4800, 50},
- .warningLow = OneThreshold<int64_t>{4900, 50},
- .warningHigh = OneThreshold<int64_t>{5150, 50},
- .criticalHigh = OneThreshold<int64_t>{5250, 50},
+ .criticalLow = OneThreshold<int64_t>{4600, 50},
+ .warningLow = OneThreshold<int64_t>{4700, 50},
+ .warningHigh = OneThreshold<int64_t>{5300, 50},
+ .criticalHigh = OneThreshold<int64_t>{5400, 50},
}));
}