Fix compatibility with ntopng 3.4 RRD format

This commit is contained in:
emanuele-f 2018-08-13 18:40:25 +02:00
parent da3cbe7b8c
commit cacbdaa9e7
6 changed files with 35 additions and 7 deletions

View file

@ -157,7 +157,8 @@ end
-- This is necessary to keep the current RRD format
local function map_rrd_column_to_metrics(schema, column_name)
if (column_name == "num") or (column_name == "num_flows")
if (column_name == "num") or starts(column_name, "num_")
or (column_name == "drops") or starts(column_name, "tcp_")
or (column_name == "sent") or (column_name == "ingress")
or (column_name == "bytes") or (column_name == "packets")
then