summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-statistics/luasrc/statistics/rrdtool/definitions/df
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2008-05-30 00:26:18 +0000
committerJo-Philipp Wich <jow@openwrt.org>2008-05-30 00:26:18 +0000
commitd8ba05412c3bd76fead8c512a112a7bf230d2b8a (patch)
treee0c47d6383b0345bb44e7545680b73833caa1b86 /applications/luci-statistics/luasrc/statistics/rrdtool/definitions/df
parentd5c47776a5477bb9eaa9cd2585b3d27d10565807 (diff)
* 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
Diffstat (limited to 'applications/luci-statistics/luasrc/statistics/rrdtool/definitions/df')
-rw-r--r--applications/luci-statistics/luasrc/statistics/rrdtool/definitions/df/df.lua26
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 000000000..a6045b720
--- /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