Skip to content

Commit

Permalink
Fix #16
Browse files Browse the repository at this point in the history
  • Loading branch information
desbma committed Jan 30, 2019
1 parent 9006a1a commit c4c8aaf
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion hddfancontrol/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -722,7 +722,8 @@ def main(drive_filepaths, cpu_probe_filepath, fan_pwm_filepaths, fan_start_value
assert(len(cpus) == 1)
device_temps[cpus[0]] = cpus[0].getTemperature()

logger.info("Maximum device temperature: %u °C" % (max(device_temps.values())))
if device_temps:
logger.info("Maximum device temperature: %u °C" % (max(device_temps.values())))

# calc target percentage fan speed
fan_speed_prct = 0
Expand Down

0 comments on commit c4c8aaf

Please sign in to comment.