luci-app-statistics: Remove usually empty std.dev. graph from ping page
[project/luci.git] / applications / luci-app-statistics / luasrc / statistics / rrdtool / definitions / ping.lua
1 -- Copyright 2008 Freifunk Leipzig / Jo-Philipp Wich <jow@openwrt.org>
2 -- Licensed to the public under the Apache License 2.0.
3
4 module("luci.statistics.rrdtool.definitions.ping", package.seeall)
5
6 function rrdargs( graph, plugin, plugin_instance, dtype )
7         return {
8                 -- Ping roundtrip time
9                 { title = "%H: ICMP Round Trip Time",
10                   vlabel = "ms",
11                   number_format = "%5.1lf ms",
12                   data = {
13                         sources = { ping = { "value" } },
14                         options = { ping__value = {
15                                 noarea = true, overlay = true, title = "%di" } }
16                 } },
17
18                 -- Ping droprate
19                 { title = "%H: ICMP Drop Rate",
20                   vlabel = "%",
21                   number_format = "%5.2lf %%",
22                   data = {
23                         types   = { "ping_droprate" },
24                         options = { ping_droprate = {
25                                 noarea = true, overlay = true, title = "%di" } }
26                 } }
27         }
28 end