diff options
author | Florian Eckert <fe@dev.tdt.de> | 2020-07-22 10:47:42 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-22 10:47:42 +0200 |
commit | 71019f6cdef877eb21286e150117fadcb2b0f8d7 (patch) | |
tree | 0db75a0b724da10c139cf8d169c99857460654e9 /applications/luci-app-statistics | |
parent | d2d3738d9046339d6374a5957cb790d0d9d62456 (diff) | |
parent | 7a2b8174ccfd05aea85d3639fbca388b6242e3ef (diff) |
Merge pull request #4267 from TDT-AG/pr/20200713-luci-app-statistics
luci-app-statistics: add missing ValuesPercentage option
Diffstat (limited to 'applications/luci-app-statistics')
3 files changed, 5 insertions, 1 deletions
diff --git a/applications/luci-app-statistics/htdocs/luci-static/resources/view/statistics/plugins/df.js b/applications/luci-app-statistics/htdocs/luci-static/resources/view/statistics/plugins/df.js index 9e3dc5630..2a82f64d5 100644 --- a/applications/luci-app-statistics/htdocs/luci-static/resources/view/statistics/plugins/df.js +++ b/applications/luci-app-statistics/htdocs/luci-static/resources/view/statistics/plugins/df.js @@ -88,6 +88,9 @@ return baseclass.extend({ o = s.option(form.Flag, 'IgnoreSelected', _('Monitor all except specified')); 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) { diff --git a/applications/luci-app-statistics/root/etc/config/luci_statistics b/applications/luci-app-statistics/root/etc/config/luci_statistics index 0fd68595f..1ab9208c3 100644 --- a/applications/luci-app-statistics/root/etc/config/luci_statistics +++ b/applications/luci-app-statistics/root/etc/config/luci_statistics @@ -80,6 +80,7 @@ config statistics 'collectd_df' option MountPoints '/jffs' option FSTypes 'tmpfs' option IgnoreSelected '0' + option ValuesPercentage '0' config statistics 'collectd_disk' option enable '0' diff --git a/applications/luci-app-statistics/root/usr/share/luci/statistics/plugins/df.json b/applications/luci-app-statistics/root/usr/share/luci/statistics/plugins/df.json index b6cfe53a2..6dcc427a1 100644 --- a/applications/luci-app-statistics/root/usr/share/luci/statistics/plugins/df.json +++ b/applications/luci-app-statistics/root/usr/share/luci/statistics/plugins/df.json @@ -3,7 +3,7 @@ "category": "general", "legend": [ [], - ["IgnoreSelected"], + ["IgnoreSelected", "ValuesPercentage"], ["Devices", "MountPoints", "FSTypes"] ] } |