diff options
author | Daniel Dickinson <openwrt@daniel.thecshore.com> | 2016-03-25 04:04:58 -0400 |
---|---|---|
committer | Daniel Dickinson <openwrt@daniel.thecshore.com> | 2016-03-25 04:04:58 -0400 |
commit | 6d2163eb622a6f4da43b6ecc8379a1fc891b5b0b (patch) | |
tree | fbfe22f15b272091183ad2bc99c76b487bc6f33d /applications/luci-app-statistics | |
parent | 5b79e62c0a99bab8dfb8dce8124d9fecc11da54b (diff) |
luci-app-statistics: Fix disk usage graphing
Disk usage graphing was broken. This fixes it.
Signed-off-by: Daniel Dickinson <openwrt@daniel.thecshore.com>
Diffstat (limited to 'applications/luci-app-statistics')
-rw-r--r-- | applications/luci-app-statistics/luasrc/statistics/rrdtool/definitions/df.lua | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/applications/luci-app-statistics/luasrc/statistics/rrdtool/definitions/df.lua b/applications/luci-app-statistics/luasrc/statistics/rrdtool/definitions/df.lua index 78c9ef504..6266ff3ba 100644 --- a/applications/luci-app-statistics/luasrc/statistics/rrdtool/definitions/df.lua +++ b/applications/luci-app-statistics/luasrc/statistics/rrdtool/definitions/df.lua @@ -12,21 +12,27 @@ function rrdargs( graph, plugin, plugin_instance, dtype ) number_format = "%5.1lf%sB", data = { - sources = { - df = { "free", "used" } + instances = { + df_complex = { "free", "used", "reserved" } }, options = { - df__free = { + df_complex_free = { color = "00ff00", overlay = false, title = "free" }, - df__used = { + df_complex_used = { color = "ff0000", overlay = false, title = "used" + }, + + df_complex_reserved = { + color = "0000ff", + overlay = false, + title = "reserved" } } } |