bug: fix nill typo (#88)

* bug: fix nill typo

Fix typo (nill to nil) in pidfile test.

* bug: fix nill typo

Fix typo (nill to nil).
This commit is contained in:
Steve AB7PA 2021-04-06 19:15:50 -07:00 committed by GitHub
parent 3de44d3830
commit 6cc379d647
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -282,7 +282,7 @@ local f = io.open(pidfile,"r")
if (f) then if (f) then
local oldpid = f:read("*number") local oldpid = f:read("*number")
f:close() f:close()
if (oldpid ~= nill and dir_exists("/proc/" .. oldpid)) then if (oldpid ~= nil and dir_exists("/proc/" .. oldpid)) then
return return
end end
end end
@ -300,7 +300,7 @@ local f = io.open(rssifile,"r")
if (f) then if (f) then
local oldpid = f:read("*number") local oldpid = f:read("*number")
f:close() f:close()
if (oldpid ~= nill and dir_exists("/proc/" .. oldpid)) then if (oldpid ~= nil and dir_exists("/proc/" .. oldpid)) then
os.remove(pidfile) os.remove(pidfile)
return return
end end

View File

@ -88,7 +88,7 @@ info['node_details']['mesh_gateway']=aredn_info.getMeshGatewaySetting()
info['meshrf']={} info['meshrf']={}
local radio=aredn_info.getMeshRadioDevice() local radio=aredn_info.getMeshRadioDevice()
if ( radio ~= nill and radio ~= "" ) then if ( radio ~= nil and radio ~= "" ) then
info['meshrf']['status']="on" info['meshrf']['status']="on"
info['meshrf']['ssid']=aredn_info.getSSID() info['meshrf']['ssid']=aredn_info.getSSID()
info['meshrf']['channel']=aredn_info.getChannel(radio) info['meshrf']['channel']=aredn_info.getChannel(radio)