Skip to content

Commit

Permalink
[thermalctld] Fix invalid warning status (sonic-net#58)
Browse files Browse the repository at this point in the history
  • Loading branch information
Wirut Getbamrung authored Jun 3, 2020
1 parent 5b14368 commit 9b90a87
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sonic-thermalctld/scripts/thermalctld
Original file line number Diff line number Diff line change
Expand Up @@ -516,7 +516,7 @@ class TemperatureUpdater(object):
'High temperature warning: {} current temperature {}C, high threshold {}C'.
format(name, temperature, high_threshold)
)
warning = warning | temperature_status.over_temperature
warning = warning | temperature_status.over_temperature

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

fvs = swsscommon.FieldValuePairs(
[('temperature', str(temperature)),
Expand Down

0 comments on commit 9b90a87

Please sign in to comment.