luci-app-statistics: fix whitespaces in rrdtool definitions
[project/luci.git] / applications / luci-app-statistics / luasrc / statistics / rrdtool / definitions / disk.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.disk", package.seeall)
5
6 function rrdargs( graph, plugin, plugin_instance, dtype )
7
8 return {
9 {
10 title = "%H: Disk I/O operations on %pi",
11 vlabel = "Operations/s",
12 number_format = "%5.1lf%sOp/s",
13
14 data = {
15 types = { "disk_ops" },
16 sources = {
17 disk_ops = { "read", "write" },
18 },
19
20 options = {
21 disk_ops__read = {
22 title = "Reads",
23 color = "00ff00",
24 flip = false
25 },
26
27 disk_ops__write = {
28 title = "Writes",
29 color = "ff0000",
30 flip = true
31 }
32 }
33 }
34 },
35
36 {
37 title = "%H: Disk I/O bandwidth on %pi",
38 vlabel = "Bytes/s",
39 number_format = "%5.1lf%sB/s",
40
41 detail = true,
42
43 data = {
44 types = { "disk_octets" },
45 sources = {
46 disk_octets = { "read", "write" }
47 },
48 options = {
49 disk_octets__read = {
50 title = "Read",
51 color = "00ff00",
52 flip = false
53 },
54 disk_octets__write = {
55 title = "Write",
56 color = "ff0000",
57 flip = true
58 }
59 }
60 }
61 }
62 }
63 end