luci-app-statistics: add ping stddev definition

Signed-off-by: Florian Eckert <fe@dev.tdt.de>
This commit is contained in:
Florian Eckert 2019-09-13 14:10:01 +02:00
parent cb252b2c03
commit b80ccb990b

View file

@ -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