close input with f:close instead of f.close (bat_freebsd)
This commit is contained in:
parent
9b5f524176
commit
a00f8e3e0c
|
@ -22,7 +22,7 @@ local function worker(format, warg)
|
|||
bat_info[key] = value
|
||||
end
|
||||
end
|
||||
f.close()
|
||||
f:close()
|
||||
|
||||
-- current state
|
||||
local state
|
||||
|
|
|
@ -21,7 +21,7 @@ local function worker(format, warg)
|
|||
-- use negative fanspeed to indicate error
|
||||
return {-1}
|
||||
else
|
||||
return {tonumber(fanspeed, 10)}
|
||||
return {tonumber(fanspeed)}
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in New Issue