mirror of
https://github.com/gSpotx2f/luci-app-internet-detector.git
synced 2025-12-06 03:26:50 +03:00
Minor fixes
This commit is contained in:
@@ -347,9 +347,9 @@ function InternetDetector:main()
|
||||
signal.signal(signal.SIGUSR1, function(signo) self:resetUiCounter(signo) end)
|
||||
|
||||
local lastStatus, currentStatus, mTimeNow, mTimeDiff, mLastTime, uiTimeNow, uiLastTime
|
||||
local interval = self.serviceConfig.interval_up
|
||||
local counter = 0
|
||||
local onStart = true
|
||||
local interval = self.serviceConfig.interval_up
|
||||
local counter = 0
|
||||
local onStart = true
|
||||
RUNNING = true
|
||||
while RUNNING do
|
||||
if counter == 0 or counter >= interval then
|
||||
@@ -441,12 +441,6 @@ function InternetDetector:status()
|
||||
return "stoped"
|
||||
end
|
||||
|
||||
function InternetDetector:poll()
|
||||
local retCode = self:checkHosts()
|
||||
return string.format('{"instances":[%s]}', self:statusJson(
|
||||
retCode, self.serviceConfig.instance))
|
||||
end
|
||||
|
||||
function InternetDetector:inetStatus()
|
||||
local inetStat = '{"instances":[]}'
|
||||
local ok, commonDir = pcall(dirent.files, self.commonDir)
|
||||
|
||||
Reference in New Issue
Block a user