From d8ba05412c3bd76fead8c512a112a7bf230d2b8a Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Fri, 30 May 2008 00:26:18 +0000 Subject: * luci/statistics: added diagram models for process and df plugins, adept controller to recent luci core, support models with per instance diagrams and index diagrams, added new strings to language file --- .../statistics/rrdtool/definitions/df/df.lua | 26 ++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 applications/luci-statistics/luasrc/statistics/rrdtool/definitions/df/df.lua (limited to 'applications/luci-statistics/luasrc/statistics/rrdtool/definitions/df/df.lua') 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 -- cgit v1.2.3