luci-app-statistics: ping module, Update MaxMissed data type
MaxMissed was implemented with positive integers only, whereas I think it should also allow the option of "-1" (disabled state) Signed-off-by: tew42 <2049715+tew42@users.noreply.github.com> [slightly edited the proposed text] Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
This commit is contained in:
parent
3b951ce55c
commit
8572ae032f
1 changed files with 3 additions and 3 deletions
|
@ -34,9 +34,9 @@ return baseclass.extend({
|
||||||
o.depends('enable', '1');
|
o.depends('enable', '1');
|
||||||
|
|
||||||
o=s.option(form.Value,'MaxMissed',_('Maximum Missed Packets'),
|
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.'));
|
_('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. Default is -1 = disabled.'));
|
||||||
o.placeholder = '10';
|
o.placeholder = '-1';
|
||||||
o.datatype = 'uinteger';
|
o.datatype = 'and(min(-1),integer)'
|
||||||
o.optional = true;
|
o.optional = true;
|
||||||
o.depends('enable', '1');
|
o.depends('enable', '1');
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in a new issue