mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-30 16:09:32 +00:00
Adapts old bytes and packets rrd RRAs to the new format
The new timeseries library now transparently tries and uses old RRA names for bytes and packets. Fixes #1882
This commit is contained in:
parent
012f025c7d
commit
d14fd57858
1 changed files with 4 additions and 1 deletions
|
|
@ -151,7 +151,10 @@ 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 == "sent") or (column_name == "ingress") then
|
||||
if (column_name == "num") or (column_name == "num_flows")
|
||||
or (column_name == "sent") or (column_name == "ingress")
|
||||
or (column_name == "bytes") or (column_name == "packets")
|
||||
then
|
||||
return 1
|
||||
elseif (column_name == "rcvd") or (column_name == "egress") then
|
||||
return 2
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue