Allows careless persons to specify a lowercased temperature unit
This commit is contained in:
@ -80,7 +80,7 @@ function system.compute_avg_chip_temp(chip_name)
|
||||
end
|
||||
|
||||
-- When the Fahrenheit unit is specified, let's perform a manual conversion.
|
||||
if _settings.temperature.unit == 'F' then
|
||||
if string.upper(_settings.temperature.unit) == 'F' then
|
||||
avg_temp = (avg_temp * (9 / 5.)) + 32
|
||||
end
|
||||
|
||||
|
Reference in New Issue
Block a user