mirror of https://github.com/lcpz/lain.git
Fix temp widget show N/A when no sensor found (#528)
This commit is contained in:
parent
07cf82e3b2
commit
57dee4c91b
|
@ -32,7 +32,11 @@ local function factory(args)
|
||||||
temp_now[t] = temp_value and temp_value/1e3 or temp_fl
|
temp_now[t] = temp_value and temp_value/1e3 or temp_fl
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
coretemp_now = string.format(format, temp_now[tempfile]) or "N/A"
|
if temp_now[tempfile] then
|
||||||
|
coretemp_now = string.format(format, temp_now[tempfile])
|
||||||
|
else
|
||||||
|
coretemp_now = "N/A"
|
||||||
|
end
|
||||||
widget = temp.widget
|
widget = temp.widget
|
||||||
settings()
|
settings()
|
||||||
end)
|
end)
|
||||||
|
|
Loading…
Reference in New Issue