From b80ccb990b5a9256207a44bfdef359bd4d5c19c9 Mon Sep 17 00:00:00 2001 From: Florian Eckert Date: Fri, 13 Sep 2019 14:10:01 +0200 Subject: [PATCH] luci-app-statistics: add ping stddev definition Signed-off-by: Florian Eckert --- .../statistics/rrdtool/definitions/ping.lua | 20 ++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/applications/luci-app-statistics/luasrc/statistics/rrdtool/definitions/ping.lua b/applications/luci-app-statistics/luasrc/statistics/rrdtool/definitions/ping.lua index 6ad11985e..b8d11c075 100644 --- a/applications/luci-app-statistics/luasrc/statistics/rrdtool/definitions/ping.lua +++ b/applications/luci-app-statistics/luasrc/statistics/rrdtool/definitions/ping.lua @@ -48,5 +48,23 @@ function rrdargs( graph, plugin, plugin_instance, dtype ) } } - return { ping, droprate } + local stddev = { + title = "%H: ICMP Standard Deviation", + vlabel = "ms", + number_format = "%5.1lf ms", + data = { + types = { + "ping_stddev" + }, + options = { + ping_stddev = { + noarea = true, + overlay = true, + title = "%di" + } + } + } + } + + return { ping, droprate, stddev } end -- 2.25.1