diff options
author | Jo-Philipp Wich <jo@mein.io> | 2019-01-21 20:14:00 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-01-21 20:14:00 +0100 |
commit | f73f1106f77a8c58672f8456565183af03556522 (patch) | |
tree | 27056dd9ae4409069787f9c3341866563310ade9 /modules | |
parent | 29c343c5ea7abbe9e81f316264800702479a90ff (diff) | |
parent | 42ad4977ae5d9291735b83b11c45ba7751646133 (diff) |
Merge pull request #2442 from TDT-AG/pr/20190109-luci-mod-system-pollinterval
luci-mod-system: add pollinterval option
Diffstat (limited to 'modules')
-rw-r--r-- | modules/luci-mod-system/luasrc/model/cbi/admin_system/system.lua | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/modules/luci-mod-system/luasrc/model/cbi/admin_system/system.lua b/modules/luci-mod-system/luasrc/model/cbi/admin_system/system.lua index c26fd475a4..b58bbd4134 100644 --- a/modules/luci-mod-system/luasrc/model/cbi/admin_system/system.lua +++ b/modules/luci-mod-system/luasrc/model/cbi/admin_system/system.lua @@ -22,6 +22,7 @@ s.addremove = false s:tab("general", translate("General Settings")) s:tab("logging", translate("Logging")) s:tab("language", translate("Language and Style")) +s:tab("advanced", translate("Advanced")) if has_zram then s:tab("zram", translate("ZRam Settings")) end -- @@ -170,6 +171,28 @@ end -- +-- Advanced +-- + +o = s:taboption("advanced", Value, "_pollinterval", + translate("Polling interval"), + translate("Polling interval for status queries in seconds")) +o.datatype = "range(3, 20)" +o.default = 5 +o:value("3") +o:value("5") +o:value("10") + +function o.cfgvalue(...) + return m.uci:get("luci", "main", "pollinterval") +end + +function o.write(self, section, value) + m.uci:set("luci", "main", "pollinterval", value) +end + + +-- -- NTP -- |