summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-app-statistics/luasrc/statistics/rrdtool
diff options
context:
space:
mode:
authorFlorian Eckert <fe@dev.tdt.de>2019-09-13 14:10:01 +0200
committerFlorian Eckert <fe@dev.tdt.de>2019-09-13 14:14:45 +0200
commitb80ccb990b5a9256207a44bfdef359bd4d5c19c9 (patch)
tree772a408d043e6cf0beb90dc6d0ed28d02371f864 /applications/luci-app-statistics/luasrc/statistics/rrdtool
parentcb252b2c03189446fb8a8413e1371c84bcb044dd (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/rrdtool')
-rw-r--r--applications/luci-app-statistics/luasrc/statistics/rrdtool/definitions/ping.lua20
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