From: Florian Eckert Date: Fri, 13 Sep 2019 12:10:01 +0000 (+0200) Subject: luci-app-statistics: add ping stddev definition X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=b80ccb990b5a9256207a44bfdef359bd4d5c19c9;p=oweals%2Fluci.git luci-app-statistics: add ping stddev definition Signed-off-by: Florian Eckert --- 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