mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-30 07:59:35 +00:00
Add comments/remove table.clone when not needed
This commit is contained in:
parent
1843bb95d7
commit
610e632234
17 changed files with 60 additions and 4 deletions
|
|
@ -238,7 +238,7 @@ function graph_utils.stackedProgressBars(total, bars, other_label, formatter, cs
|
|||
local legend_items = bars
|
||||
|
||||
if other_label ~= nil then
|
||||
legend_items = table.clone(bars)
|
||||
legend_items = bars
|
||||
|
||||
legend_items[#legend_items + 1] = {
|
||||
title = other_label,
|
||||
|
|
@ -367,6 +367,7 @@ function graph_utils.drawGraphs(ifid, schema, tags, zoomLevel, baseurl, selected
|
|||
|
||||
if options.tskey then
|
||||
-- this can contain a MAC address for local broadcast domain hosts
|
||||
-- table.clone needed to modify some parameters while keeping the original unchanged
|
||||
tags = table.clone(tags)
|
||||
tags.host = options.tskey
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue