mirror of https://github.com/aredn/aredn.git
change pollrate default to one hour (#954)
This commit is contained in:
parent
880a4f195a
commit
2d9914cb35
|
@ -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
|
||||
|
|
|
@ -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
|
||||
},
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue