Implements host nDPI categories pie chart

Implements #1449
This commit is contained in:
Simone Mainardi 2017-09-19 12:48:58 +02:00
parent 13f0bb9d9b
commit a1df69c094
4 changed files with 49 additions and 24 deletions

View file

@ -200,9 +200,6 @@ function getRRDName(ifid, host_or_network, rrdFile)
elseif host_or_network ~= nil and string.starts(host_or_network, 'profile:') then
host_or_network = string.gsub(host_or_network, 'profile:', '')
rrdname = fixPath(dirs.workingdir .. "/" .. ifid .. "/profilestats/")
elseif host_or_network ~= nil and string.starts(host_or_network, 'ndpi_category:') then
host_or_network = string.gsub(host_or_network, 'ndpi_category:', '')
rrdname = fixPath(dirs.workingdir .. "/" .. ifid .. "/ndpicategorystats/")
elseif host_or_network ~= nil and string.starts(host_or_network, 'vlan:') then
host_or_network = string.gsub(host_or_network, 'vlan:', '')
rrdname = fixPath(dirs.workingdir .. "/" .. ifid .. "/vlanstats/")