projects
/
project
/
luci.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
app-statistics: df: Don't separate disk usage types
[project/luci.git]
/
applications
/
luci-app-statistics
/
luasrc
/
statistics
/
rrdtool
/
definitions
/
df.lua
diff --git
a/applications/luci-app-statistics/luasrc/statistics/rrdtool/definitions/df.lua
b/applications/luci-app-statistics/luasrc/statistics/rrdtool/definitions/df.lua
index
78c9ef5
..
b5633c1
100644
(file)
--- a/
applications/luci-app-statistics/luasrc/statistics/rrdtool/definitions/df.lua
+++ b/
applications/luci-app-statistics/luasrc/statistics/rrdtool/definitions/df.lua
@@
-6,27
+6,32
@@
module("luci.statistics.rrdtool.definitions.df", package.seeall)
function rrdargs( graph, plugin, plugin_instance, dtype )
return {
function rrdargs( graph, plugin, plugin_instance, dtype )
return {
- title = "%H: Disk space usage on %
d
i",
+ title = "%H: Disk space usage on %
p
i",
vlabel = "Bytes",
vlabel = "Bytes",
- per_instance = true,
number_format = "%5.1lf%sB",
data = {
number_format = "%5.1lf%sB",
data = {
-
sour
ces = {
- df
= { "free", "us
ed" }
+
instan
ces = {
+ df
_complex = { "free", "used", "reserv
ed" }
},
options = {
},
options = {
- df__free = {
+ df_
complex
_free = {
color = "00ff00",
overlay = false,
title = "free"
},
color = "00ff00",
overlay = false,
title = "free"
},
- df__used = {
+ df_
complex
_used = {
color = "ff0000",
overlay = false,
title = "used"
color = "ff0000",
overlay = false,
title = "used"
+ },
+
+ df_complex_reserved = {
+ color = "0000ff",
+ overlay = false,
+ title = "reserved"
}
}
}
}
}
}