summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-app-statistics/htdocs/luci-static/resources
diff options
context:
space:
mode:
authorJohn Kohl <jtk.git@bostonpog.org>2021-08-14 15:34:47 -0400
committerHannu Nyman <hannu.nyman@iki.fi>2021-08-15 10:39:31 +0300
commit1b715d25159c04eee3e81d2de61c68c5f4bd7c02 (patch)
tree5b6ca897db6e5a3c4fba2adc9dc1ec642053bc9e /applications/luci-app-statistics/htdocs/luci-static/resources
parent6047ec0cd02e6eb56a70cd71637844f4f3eaf257 (diff)
luci-app-statistics: add support for MaxMissed
Signed-off-by: John Kohl <jtk.git@bostonpog.org>
Diffstat (limited to 'applications/luci-app-statistics/htdocs/luci-static/resources')
-rw-r--r--applications/luci-app-statistics/htdocs/luci-static/resources/view/statistics/plugins/ping.js9
1 files changed, 8 insertions, 1 deletions
diff --git a/applications/luci-app-statistics/htdocs/luci-static/resources/view/statistics/plugins/ping.js b/applications/luci-app-statistics/htdocs/luci-static/resources/view/statistics/plugins/ping.js
index 47ce7fff52..e08ff6497b 100644
--- a/applications/luci-app-statistics/htdocs/luci-static/resources/view/statistics/plugins/ping.js
+++ b/applications/luci-app-statistics/htdocs/luci-static/resources/view/statistics/plugins/ping.js
@@ -13,7 +13,7 @@ return baseclass.extend({
o = s.option(form.DynamicList, 'Hosts', _('Monitor hosts'));
o.default = '127.0.0.1';
- o.datatype = 'ipaddr("nomask")';
+ o.datatype = 'host';
o.depends('enable', '1');
o = s.option(form.ListValue, 'AddressFamily', _('Address family'));
@@ -32,6 +32,13 @@ return baseclass.extend({
o.default = '30';
o.datatype = 'ufloat';
o.depends('enable', '1');
+
+ o=s.option(form.Value,'MaxMissed',_('Maximum Missed Packets'),
+ _('When a host has not replied to this number of packets in a row, re-resolve the hostname in DNS. Useful for dynamic DNS hosts.'));
+ o.placeholder = '10';
+ o.datatype = 'uinteger';
+ o.optional = true;
+ o.depends('enable', '1');
},
configSummary: function(section) {