Skip to content

Commit

Permalink
Update thermal.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Yagami-Jiang committed Sep 4, 2023
1 parent ba7a299 commit 02912e5
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def get_high_critical_threshold(self):
return float(attr_value / 1000)
else:
info = self.helper.read_txt_file(sensor_list_config.Sensor_List_Info)
for line in info:
for line in info.splitlines():
if "PSU%d_Temp1" % self.thermals_psu_index in line:
return float(line.split("|")[8])
else:
Expand Down

0 comments on commit 02912e5

Please sign in to comment.