Skip to content

Commit

Permalink
Seastone fix issue sonic-net#18767 psu fan speed issue
Browse files Browse the repository at this point in the history
Why I did it
Fix issue sonic-net#18787 fan information could not been shown issue.

How I did it
Add psu fan get_target_speed api support.

How to verify it
Use `show platform fan` in branch 202311.
  • Loading branch information
qnos committed Apr 24, 2024
1 parent 9deea7b commit 5d08361
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions device/celestica/x86_64-cel_seastone-r0/sonic_platform/fan.py
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,8 @@ def get_target_speed(self):
sysfs_path = sysfs_path.format(fan_index[self.fan_tray_index])
pwm = self._api_helper.read_txt_file(sysfs_path)
target = round(int(pwm) / 255 * 100.0)
else:
return self.get_speed()

return target

Expand Down

0 comments on commit 5d08361

Please sign in to comment.