luci-app-statistics: fix whitespaces in rrdtool definitions
[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
8 return {
9 -- Ping roundtrip time
10 { title = "%H: ICMP Round Trip Time",
11 vlabel = "ms",
12 number_format = "%5.1lf ms",
13 data = {
14 sources = { ping = { "value" } },
15 options = { ping__value = {
16 noarea = true, overlay = true, title = "%di" } }
17 } },
18
19 -- Ping droprate
20 { title = "%H: ICMP Drop Rate",
21 vlabel = "%",
22 number_format = "%5.2lf %%",
23 data = {
24 types = { "ping_droprate" },
25 options = { ping_droprate = {
26 noarea = true, overlay = true, title = "%di" } }
27 } }
28 }
29 end