luci-app-statistics: Diskfree graph show also percent view
authorFlorian Eckert <fe@dev.tdt.de>
Thu, 7 Mar 2019 09:26:12 +0000 (10:26 +0100)
committerFlorian Eckert <fe@dev.tdt.de>
Thu, 7 Mar 2019 14:16:17 +0000 (15:16 +0100)
commit42a060a85255ac7e4ee33f5c16d3434c12a8f8fb
tree7839feddab0585e5d29f7de05a02b0c5166d5560
parentb42465f3fc6e282cf10627f0bc7c0c0cecc7d3c8
luci-app-statistics: Diskfree graph show also percent view

The Diskfree (df) plugin could also collect the values in percent if the
option "ValuesPercentage" is set in the collectd configuration.
This commit will check if "df_complex" / "percent_bytes" or both are
collected by collectd and so will show the corrsponding graph.

Signed-off-by: Florian Eckert <fe@dev.tdt.de>
applications/luci-app-statistics/luasrc/statistics/rrdtool/definitions/df.lua