summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-statistics/luasrc/statistics/rrdtool/definitions/wireless.lua
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2011-11-28 03:26:59 +0000
committerJo-Philipp Wich <jow@openwrt.org>2011-11-28 03:26:59 +0000
commit5d4191c848e568570ebd3b63358379c9861b2b02 (patch)
treeb8be78b47c9e49d2c3b2d5da2deef0a938833059 /applications/luci-statistics/luasrc/statistics/rrdtool/definitions/wireless.lua
parentef9df734c35e0d478dd7c9c03d301085fdfd3993 (diff)
applications/luci-statistics: move all models to the per-plugin level, provide titles and labels, provide model for disk plugin
Diffstat (limited to 'applications/luci-statistics/luasrc/statistics/rrdtool/definitions/wireless.lua')
-rw-r--r--applications/luci-statistics/luasrc/statistics/rrdtool/definitions/wireless.lua13
1 files changed, 10 insertions, 3 deletions
diff --git a/applications/luci-statistics/luasrc/statistics/rrdtool/definitions/wireless.lua b/applications/luci-statistics/luasrc/statistics/rrdtool/definitions/wireless.lua
index 9bcbc06909..7daddab67e 100644
--- a/applications/luci-statistics/luasrc/statistics/rrdtool/definitions/wireless.lua
+++ b/applications/luci-statistics/luasrc/statistics/rrdtool/definitions/wireless.lua
@@ -26,6 +26,8 @@ function rrdargs( graph, host, plugin, plugin_instance )
per_instance = true,
-- diagram data description
+ title = "%H: Signal to Noise Ratio on %pi",
+ vlabel = "dBm",
data = {
types = { "signal_noise", "signal_power" },
@@ -33,12 +35,14 @@ function rrdargs( graph, host, plugin, plugin_instance )
options = {
signal_power = {
overlay = true, -- don't summarize
- color = "0000ff" -- power is blue
+ color = "0000ff", -- power is blue
+ title = "Signal",
},
signal_noise = {
overlay = true, -- don't summarize
- color = "ff0000" -- noise is red
+ color = "ff0000", -- noise is red
+ title = "Noise",
}
}
}
@@ -52,6 +56,8 @@ function rrdargs( graph, host, plugin, plugin_instance )
-- draw this diagram for each data instance
per_instance = true,
+ title = "%H: Signal Quality on %pi",
+ vlabel = "n",
-- diagram data description
data = {
@@ -61,7 +67,8 @@ function rrdargs( graph, host, plugin, plugin_instance )
options = {
signal_quality = {
noarea = true, -- don't draw area
- color = "0000ff" -- quality is blue
+ color = "0000ff", -- quality is blue
+ title = "Signal Quality"
}
}
}