1 -- Copyright 2008 Freifunk Leipzig / Jo-Philipp Wich <jow@openwrt.org>
2 -- Licensed to the public under the Apache License 2.0.
4 module("luci.statistics.rrdtool.definitions.df", package.seeall)
7 return luci.i18n.translate("Disk Space Usage")
10 function rrdargs( graph, plugin, plugin_instance, dtype )
13 title = "%H: Disk space usage on %pi",
15 number_format = "%5.1lf%sB",
19 df_complex = { "free", "used", "reserved" }
35 df_complex_reserved = {
44 local percent_bytes = {
45 title = "%H: Disk space usage on %pi",
47 number_format = "%5.2lf %%",
51 percent_bytes = { "free", "used", "reserved" }
55 percent_bytes_free = {
61 percent_bytes_used = {
67 percent_bytes_reserved = {
76 local types = graph.tree:data_types( plugin, plugin_instance )
79 for _, t in ipairs(types) do
80 if t == "percent_bytes" then
81 p[#p+1] = percent_bytes
84 if t == "df_complex" then