78c9ef50442dae026a01b3c9cb3486a1c15a26c3
[project/luci.git] / applications / luci-app-statistics / luasrc / statistics / rrdtool / definitions / df.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.df", package.seeall)
5
6 function rrdargs( graph, plugin, plugin_instance, dtype )
7
8         return {
9                 title = "%H: Disk space usage on %di",
10                 vlabel = "Bytes",
11                 per_instance  = true,
12                 number_format = "%5.1lf%sB",
13
14                 data = {
15                         sources = {
16                                 df = { "free", "used" }
17                         },
18
19                         options = {
20                                 df__free = {
21                                         color = "00ff00",
22                                         overlay = false,
23                                         title = "free"
24                                 },
25
26                                 df__used = {
27                                         color = "ff0000",
28                                         overlay = false,
29                                         title = "used"
30                                 }
31                         }
32                 }
33         }
34 end