diff options
Diffstat (limited to 'applications/luci-statistics/luasrc/statistics/rrdtool/definitions/ping/ping.lua')
-rw-r--r-- | applications/luci-statistics/luasrc/statistics/rrdtool/definitions/ping/ping.lua | 26 |
1 files changed, 9 insertions, 17 deletions
diff --git a/applications/luci-statistics/luasrc/statistics/rrdtool/definitions/ping/ping.lua b/applications/luci-statistics/luasrc/statistics/rrdtool/definitions/ping/ping.lua index b041c015d..cf1db00b4 100644 --- a/applications/luci-statistics/luasrc/statistics/rrdtool/definitions/ping/ping.lua +++ b/applications/luci-statistics/luasrc/statistics/rrdtool/definitions/ping/ping.lua @@ -1,23 +1,15 @@ module("luci.statistics.rrdtool.definitions.ping.ping", package.seeall) -function rrdargs( graph, host, plugin, plugin_instance, dtype ) +function rrdargs( graph, plugin, plugin_instance, dtype ) - dtype_instances = graph.tree:data_instances( plugin, plugin_instance, dtype ) + return { + title = "Pingzeiten", + vlabel = "ms", - opts = { } - opts.sources = { } - opts.image = graph:mkpngpath( host, plugin, plugin_instance, dtype ) - opts.title = host .. ": Pingzeiten" - opts.rrd = { "-v", "Millisekunden" } - opts.colors = { } - - for i, inst in ipairs(dtype_instances) do - opts.sources[i] = { - ds = "ping", - name = inst, - rrd = graph:mkrrdpath( host, plugin, plugin_instance, dtype, inst ) + data = { + sources = { + ping = { "ping" } + } } - end - - return opts + } end |