fanspeed: change string match call to simpler tonumber() cast
Signed-off-by: Andreas Geisenhainer <psycorama@datenhalde.de>
This commit is contained in:
parent
3d4cc4a089
commit
b08364bb12
|
@ -20,7 +20,7 @@ local function worker(format, warg)
|
|||
-- use negative fanspeed to indicate error
|
||||
return {-1}
|
||||
else
|
||||
return {string.match(fanspeed, "[%d]+")}
|
||||
return {tonumber(fanspeed, 10)}
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in New Issue