summaryrefslogtreecommitdiffhomepage
path: root/applications
diff options
context:
space:
mode:
authorHannu Nyman <hannu.nyman@iki.fi>2016-03-28 22:23:57 +0300
committerHannu Nyman <hannu.nyman@iki.fi>2016-03-28 22:23:57 +0300
commitf9bf553bf4122496fdc3a1bc868ee3026cca9340 (patch)
tree4686e9b9c2e1a1744ca3cf2234a28991b5357aff /applications
parent0a1f44c293231c64c3ceb352637a5c3584fba50c (diff)
parent6d2163eb622a6f4da43b6ecc8379a1fc891b5b0b (diff)
Merge pull request #686 from cshore/pull-request-stastiscs-df
luci-app-statistics: Fix disk usage graphing
Diffstat (limited to 'applications')
-rw-r--r--applications/luci-app-statistics/luasrc/statistics/rrdtool/definitions/df.lua14
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"
}
}
}