git.99rst.org
/
openwrt-luci.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
| inline |
side by side
(parent:
b1d307d
)
luci-app-statistics: support specifying line width in graph definitions
author
Jo-Philipp Wich
<redacted>
Sat, 10 Jun 2017 18:37:29 +0000
(20:37 +0200)
committer
Jo-Philipp Wich
<redacted>
Sat, 10 Jun 2017 18:37:29 +0000
(20:37 +0200)
This allows a graph definition to explicitely request LINE1, LINE2 or
LINE3 for a data source.
Signed-off-by: Jo-Philipp Wich <redacted>
applications/luci-app-statistics/luasrc/statistics/rrdtool.lua
patch
|
blob
|
history
diff --git
a/applications/luci-app-statistics/luasrc/statistics/rrdtool.lua
b/applications/luci-app-statistics/luasrc/statistics/rrdtool.lua
index 4e00e7f1fcdf1dc4be3aece46b160b8171e31b44..e29a2e17d9dba3e0a39d66921022b0e7a4e657a4 100644
(file)
--- a/
applications/luci-app-statistics/luasrc/statistics/rrdtool.lua
+++ b/
applications/luci-app-statistics/luasrc/statistics/rrdtool.lua
@@
-278,7
+278,7
@@
function Graph._generic( self, opts, plugin, plugin_instance, dtype, index )
-- create line1 statement
_tif( _args, "LINE%d:%s_%s#%s:%s",
- source.
noarea and 2 or 1
,
+ source.
width or (source.noarea and 2 or 1)
,
source.sname, var, line_color, legend )
end
git clone https://git.99rst.org/PROJECT