diff options
author | Jo-Philipp Wich <jo@mein.io> | 2017-06-10 20:37:29 +0200 |
---|---|---|
committer | Jo-Philipp Wich <jo@mein.io> | 2017-06-10 20:39:26 +0200 |
commit | 8eadde5f3b66f72fe13505ab0c6ff789d72f2522 (patch) | |
tree | 7cd37b374ba7e72cccfd450adaa9ca7528ff8cb7 /applications/luci-app-statistics | |
parent | 61bc034b8df9b5a54bc406bf35fbfd920b6e6804 (diff) |
luci-app-statistics: support specifying line width in graph definitions
This allows a graph definition to explicitely request LINE1, LINE2 or
LINE3 for a data source.
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to 'applications/luci-app-statistics')
-rw-r--r-- | applications/luci-app-statistics/luasrc/statistics/rrdtool.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/applications/luci-app-statistics/luasrc/statistics/rrdtool.lua b/applications/luci-app-statistics/luasrc/statistics/rrdtool.lua index 4e00e7f1f..e29a2e17d 100644 --- 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 |