summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-app-statistics/luasrc/statistics/rrdtool.lua
diff options
context:
space:
mode:
authorFlorian Eckert <fe@dev.tdt.de>2019-04-30 08:47:38 +0200
committerGitHub <noreply@github.com>2019-04-30 08:47:38 +0200
commit1b79446fdf2a384e2fe16b64890fee09d3824101 (patch)
treefc60b4e59fa847eeb67d7e044ca079054d8ac126 /applications/luci-app-statistics/luasrc/statistics/rrdtool.lua
parent18cde3535d0222065a4edd403fa0936b1709708f (diff)
parent7bab4a3ef23397991c7f2296508cd52be20b4e49 (diff)
Merge pull request #2657 from msurovcak/msurovcak-statistics-collon
luci-app-statistics - allow rrd files to contain :
Diffstat (limited to 'applications/luci-app-statistics/luasrc/statistics/rrdtool.lua')
-rw-r--r--applications/luci-app-statistics/luasrc/statistics/rrdtool.lua2
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 f827e9230..29090eed8 100644
--- a/applications/luci-app-statistics/luasrc/statistics/rrdtool.lua
+++ b/applications/luci-app-statistics/luasrc/statistics/rrdtool.lua
@@ -62,7 +62,7 @@ function Graph._mkpath( self, plugin, plugin_instance, dtype, dtype_instance )
end
function Graph.mkrrdpath( self, ... )
- return string.format( "%s/%s.rrd", self.opts.rrdpath, self:_mkpath( ... ) )
+ return string.format( "%s/%s.rrd", self.opts.rrdpath, string.gsub(self:_mkpath( ... ), ":", "\\:") )
end
function Graph.mkpngpath( self, ... )