Simplifies redundant info displayed with sub-Interfaces

Fixes #1464
This commit is contained in:
Simone Mainardi 2017-09-22 17:42:04 +02:00
parent 39b7cff95a
commit b26eb71316
7 changed files with 41 additions and 16 deletions

View file

@ -32,7 +32,8 @@ end
prefs = ntop.getPrefs()
ifstats = interface.getStats()
local ifstats = interface.getStats()
local show_vlan = (ifstats.vlan and ntop.getPref("ntopng.prefs.dynamic_flow_collection_mode") ~= "vlan" and flow["vlan"] ~= 0)
print [[
<hr>
@ -198,6 +199,7 @@ print [[
title: "]] print(i18n("vlan")) print [[",
field: "column_vlan",
sortable: true,
hidden: ]] print(tostring(not show_vlan)) print[[,
css: {
textAlign: 'center'
}