fanspeed: change string match call to simpler tonumber() cast

Signed-off-by: Andreas Geisenhainer <psycorama@datenhalde.de>
This commit is contained in:
Andreas Geisenhainer 2017-01-20 21:13:25 +01:00
parent 3d4cc4a089
commit b08364bb12
1 changed files with 1 additions and 1 deletions

View File

@ -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