Merge pull request #4267 from TDT-AG/pr/20200713-luci-app-statistics
luci-app-statistics: add missing ValuesPercentage option
This commit is contained in:
commit
71019f6cde
3 changed files with 5 additions and 1 deletions
|
@ -88,6 +88,9 @@ return baseclass.extend({
|
||||||
|
|
||||||
o = s.option(form.Flag, 'IgnoreSelected', _('Monitor all except specified'));
|
o = s.option(form.Flag, 'IgnoreSelected', _('Monitor all except specified'));
|
||||||
o.depends('enable', '1');
|
o.depends('enable', '1');
|
||||||
|
|
||||||
|
o = s.option(form.Flag, 'ValuesPercentage', _('Free space, reserved space and used space is reported as relative values'));
|
||||||
|
o.depends('enable', '1');
|
||||||
},
|
},
|
||||||
|
|
||||||
configSummary: function(section) {
|
configSummary: function(section) {
|
||||||
|
|
|
@ -80,6 +80,7 @@ config statistics 'collectd_df'
|
||||||
option MountPoints '/jffs'
|
option MountPoints '/jffs'
|
||||||
option FSTypes 'tmpfs'
|
option FSTypes 'tmpfs'
|
||||||
option IgnoreSelected '0'
|
option IgnoreSelected '0'
|
||||||
|
option ValuesPercentage '0'
|
||||||
|
|
||||||
config statistics 'collectd_disk'
|
config statistics 'collectd_disk'
|
||||||
option enable '0'
|
option enable '0'
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
"category": "general",
|
"category": "general",
|
||||||
"legend": [
|
"legend": [
|
||||||
[],
|
[],
|
||||||
["IgnoreSelected"],
|
["IgnoreSelected", "ValuesPercentage"],
|
||||||
["Devices", "MountPoints", "FSTypes"]
|
["Devices", "MountPoints", "FSTypes"]
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue