luci-app-statistics: Fix disk usage graphing

Disk usage graphing was broken.  This fixes it.

Signed-off-by: Daniel Dickinson <openwrt@daniel.thecshore.com>
This commit is contained in:
Daniel Dickinson 2016-03-25 04:04:58 -04:00
parent 5b79e62c0a
commit 6d2163eb62

View file

@ -12,21 +12,27 @@ function rrdargs( graph, plugin, plugin_instance, dtype )
number_format = "%5.1lf%sB", number_format = "%5.1lf%sB",
data = { data = {
sources = { instances = {
df = { "free", "used" } df_complex = { "free", "used", "reserved" }
}, },
options = { options = {
df__free = { df_complex_free = {
color = "00ff00", color = "00ff00",
overlay = false, overlay = false,
title = "free" title = "free"
}, },
df__used = { df_complex_used = {
color = "ff0000", color = "ff0000",
overlay = false, overlay = false,
title = "used" title = "used"
},
df_complex_reserved = {
color = "0000ff",
overlay = false,
title = "reserved"
} }
} }
} }