Use 230V nominal range for PSU voltage sensor highlighting

This commit is contained in:
Mikhail Chusavitin
2026-02-24 18:07:34 +03:00
parent 15dc86a0e4
commit 2e348751f3
2 changed files with 5 additions and 5 deletions

View File

@@ -278,9 +278,9 @@ func synthesizePSUVoltageSensors(hw *models.HardwareConfig) []models.SensorReadi
return nil return nil
} }
const ( const (
nominalV = 220.0 nominalV = 230.0
minV = nominalV * 0.9 // 198V minV = nominalV * 0.9 // 207V
maxV = nominalV * 1.1 // 242V maxV = nominalV * 1.1 // 253V
) )
out := make([]models.SensorReading, 0, len(hw.PowerSupply)) out := make([]models.SensorReading, 0, len(hw.PowerSupply))
for _, psu := range hw.PowerSupply { for _, psu := range hw.PowerSupply {

View File

@@ -1111,9 +1111,9 @@ function renderSensors(sensors) {
valueStr = s.status; valueStr = s.status;
} }
// Highlight PSU mains voltage deviations from nominal 220V (±10%). // Highlight PSU mains voltage deviations from nominal 230V (±10%).
let extraClass = ''; let extraClass = '';
if (isPSUVoltage && Number.isFinite(s.value) && (s.value < 198 || s.value > 242)) { if (isPSUVoltage && Number.isFinite(s.value) && (s.value < 207 || s.value > 253)) {
extraClass = ' voltage-out-of-range'; extraClass = ' voltage-out-of-range';
} }