Skip to content

Commit 9b90a87

Browse files
author
Wirut Getbamrung
authored
[thermalctld] Fix invalid warning status (sonic-net#58)
1 parent 5b14368 commit 9b90a87

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sonic-thermalctld/scripts/thermalctld

+2-2
Original file line numberDiff line numberDiff line change
@@ -516,7 +516,7 @@ class TemperatureUpdater(object):
516516
'High temperature warning: {} current temperature {}C, high threshold {}C'.
517517
format(name, temperature, high_threshold)
518518
)
519-
warning = warning | temperature_status.over_temperature
519+
warning = warning | temperature_status.over_temperature
520520

521521
if temperature != NOT_AVAILABLE and temperature_status.set_under_temperature(temperature, low_threshold):
522522
log_on_status_changed(not temperature_status.under_temperature,
@@ -525,7 +525,7 @@ class TemperatureUpdater(object):
525525
'Low temperature warning: {} current temperature {}C, low threshold {}C'.
526526
format(name, temperature, low_threshold)
527527
)
528-
warning = warning | temperature_status.under_temperature
528+
warning = warning | temperature_status.under_temperature
529529

530530
fvs = swsscommon.FieldValuePairs(
531531
[('temperature', str(temperature)),

0 commit comments

Comments
 (0)