Implements hierarchical AS RRDs directory tree

This commit is contained in:
Simone Mainardi 2018-05-17 11:28:09 +02:00
parent 4da97c492a
commit af907b61af
6 changed files with 200 additions and 187 deletions

View file

@ -20,6 +20,8 @@ end
-- Fix path format Unix <-> Windows
function os_utils.fixPath(path)
path = string.gsub(path, "//+", '/') -- removes possibly empty parts of the path
if(ntop.isWindows() and (string.len(path) > 2)) then
path = string.gsub(path, "/", os_utils.getPathDivider())
end