diff options
author | Florian Eckert <fe@dev.tdt.de> | 2019-09-13 14:10:01 +0200 |
---|---|---|
committer | Florian Eckert <fe@dev.tdt.de> | 2019-09-13 14:14:45 +0200 |
commit | b80ccb990b5a9256207a44bfdef359bd4d5c19c9 (patch) | |
tree | 772a408d043e6cf0beb90dc6d0ed28d02371f864 /applications/luci-app-statistics/luasrc/statistics | |
parent | cb252b2c03189446fb8a8413e1371c84bcb044dd (diff) |
luci-app-statistics: add ping stddev definition
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
Diffstat (limited to 'applications/luci-app-statistics/luasrc/statistics')
-rw-r--r-- | applications/luci-app-statistics/luasrc/statistics/rrdtool/definitions/ping.lua | 20 |
1 files changed, 19 insertions, 1 deletions
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 6ad11985ec..b8d11c0759 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 |