change pollrate default to one hour (#954)

This commit is contained in:
Steve 2023-10-05 13:38:05 -07:00 committed by GitHub
parent 880a4f195a
commit 2d9914cb35
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -40,7 +40,7 @@ function aredn_message()
local pollrate = uci.cursor():get("aredn", "@alerts[0]", "pollrate")
pollrate = tonumber(pollrate)
if not pollrate or pollrate <= 0 then
pollrate = 12 -- 12 hour default
pollrate = 1 -- 1 hour default
end
wait_for_ticks(pollrate * 60 * 60)
end

View File

@ -444,7 +444,7 @@ local settings = {
key = "aredn.@alerts[0].pollrate",
type = "string",
desc = "<b>Alert Message Pollrate</b> - how many hours to wait between polling for new AREDN Alerts<br><br><small>aredn.@alerts[0].pollrate</small>",
default = "12",
default = "1",
needreboot = true
},
{