luci-app-statistics: add missing ValuesPercentage option 4267/head
authorFlorian Eckert <fe@dev.tdt.de>
Mon, 13 Jul 2020 11:31:35 +0000 (13:31 +0200)
committerFlorian Eckert <fe@dev.tdt.de>
Mon, 13 Jul 2020 11:32:52 +0000 (13:32 +0200)
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
applications/luci-app-statistics/htdocs/luci-static/resources/view/statistics/plugins/df.js
applications/luci-app-statistics/root/etc/config/luci_statistics
applications/luci-app-statistics/root/usr/share/luci/statistics/plugins/df.json

index 9e3dc5630a5e14bab06ee89cade0ecc10bf737bb..2a82f64d5aa8457113a463a2bbb9791aceefb215 100644 (file)
@@ -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) {
index 0fd68595f6d782f1b9f711bafae435f391800589..1ab9208c3f1bb1344e6d5f7dbbb06eb3d16241ff 100644 (file)
@@ -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'
index b6cfe53a20b75134147dc500df23110f14b5f689..6dcc427a16f2708ff39395af463be6495a7754d5 100644 (file)
@@ -3,7 +3,7 @@
        "category": "general",
        "legend": [
                [],
-               ["IgnoreSelected"],
+               ["IgnoreSelected", "ValuesPercentage"],
                ["Devices", "MountPoints", "FSTypes"]
        ]
 }