Merge pull request #2657 from msurovcak/msurovcak-statistics-collon

luci-app-statistics - allow rrd files to contain :
This commit is contained in:
Florian Eckert 2019-04-30 08:47:38 +02:00 committed by GitHub
commit 1b79446fdf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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, ... )