From 2d9914cb35a72deeff43c58ed05efe9df3dfd56c Mon Sep 17 00:00:00 2001
From: Steve <69524416+ab7pa@users.noreply.github.com>
Date: Thu, 5 Oct 2023 13:38:05 -0700
Subject: [PATCH] change pollrate default to one hour (#954)
---
files/usr/local/bin/mgr/aredn_message.lua | 2 +-
files/www/cgi-bin/advancedconfig | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/files/usr/local/bin/mgr/aredn_message.lua b/files/usr/local/bin/mgr/aredn_message.lua
index 3bd3eba6..938e2c37 100755
--- a/files/usr/local/bin/mgr/aredn_message.lua
+++ b/files/usr/local/bin/mgr/aredn_message.lua
@@ -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
diff --git a/files/www/cgi-bin/advancedconfig b/files/www/cgi-bin/advancedconfig
index 63eaf290..4040a1fd 100755
--- a/files/www/cgi-bin/advancedconfig
+++ b/files/www/cgi-bin/advancedconfig
@@ -444,7 +444,7 @@ local settings = {
key = "aredn.@alerts[0].pollrate",
type = "string",
desc = "Alert Message Pollrate - how many hours to wait between polling for new AREDN Alerts
aredn.@alerts[0].pollrate",
- default = "12",
+ default = "1",
needreboot = true
},
{