mirror of https://git.openwrt.org/project/luci.git
luci-app-statistics: add support for MaxMissed
Signed-off-by: John Kohl <jtk.git@bostonpog.org>
This commit is contained in:
parent
6047ec0cd0
commit
1b715d2515
|
@ -13,7 +13,7 @@ return baseclass.extend({
|
||||||
|
|
||||||
o = s.option(form.DynamicList, 'Hosts', _('Monitor hosts'));
|
o = s.option(form.DynamicList, 'Hosts', _('Monitor hosts'));
|
||||||
o.default = '127.0.0.1';
|
o.default = '127.0.0.1';
|
||||||
o.datatype = 'ipaddr("nomask")';
|
o.datatype = 'host';
|
||||||
o.depends('enable', '1');
|
o.depends('enable', '1');
|
||||||
|
|
||||||
o = s.option(form.ListValue, 'AddressFamily', _('Address family'));
|
o = s.option(form.ListValue, 'AddressFamily', _('Address family'));
|
||||||
|
@ -32,6 +32,13 @@ return baseclass.extend({
|
||||||
o.default = '30';
|
o.default = '30';
|
||||||
o.datatype = 'ufloat';
|
o.datatype = 'ufloat';
|
||||||
o.depends('enable', '1');
|
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) {
|
configSummary: function(section) {
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
"title": "Ping",
|
"title": "Ping",
|
||||||
"category": "network",
|
"category": "network",
|
||||||
"legend": [
|
"legend": [
|
||||||
["TTL", "Interval", "AddressFamily"],
|
["TTL", "Interval", "AddressFamily", "MaxMissed"],
|
||||||
[],
|
[],
|
||||||
["Hosts"]
|
["Hosts"]
|
||||||
]
|
]
|
||||||
|
|
Loading…
Reference in New Issue