diff options
Diffstat (limited to 'applications/luci-statistics/luasrc/statistics/rrdtool/definitions/df')
-rw-r--r-- | applications/luci-statistics/luasrc/statistics/rrdtool/definitions/df/df.lua | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/applications/luci-statistics/luasrc/statistics/rrdtool/definitions/df/df.lua b/applications/luci-statistics/luasrc/statistics/rrdtool/definitions/df/df.lua new file mode 100644 index 0000000000..a6045b720a --- /dev/null +++ b/applications/luci-statistics/luasrc/statistics/rrdtool/definitions/df/df.lua @@ -0,0 +1,26 @@ +module("luci.statistics.rrdtool.definitions.df.df", package.seeall) + +function rrdargs( graph, plugin, plugin_instance, dtype ) + + return { + per_instance = true, + number_format = "%5.1lf%s", + + data = { + sources = { + df = { "free", "used" } + }, + + options = { + df__free = { + color = "00ff00" + }, + + df__used = { + color = "ff0000", + flip = true + } + } + } + } +end |