Skip to content

Commit

Permalink
Update fan.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Yagami-Jiang committed Jul 26, 2023
1 parent 9692f9e commit e1663c6
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -90,4 +90,4 @@ def get_speed(self):
f_r_fan = "Front" if fan_name.endswith("1") else "Rear"
max_fan_rpm = eval(self.plugin_data['FAN']['FAN_MAX_RPM_SPEED'][direction][f_r_fan])
speed_percentage = round(speed_rpm / max_fan_rpm * 100)
return speed_rpm if speed_percentage > 100 else speed_percentage
return 100 if speed_percentage > 100 else speed_percentage

0 comments on commit e1663c6

Please sign in to comment.