mirror of
https://github.com/ntop/ntopng.git
synced 2026-05-01 00:19:33 +00:00
Added tab pane for traffic profiles
This commit is contained in:
parent
714352b25e
commit
4a5948ff27
8 changed files with 131 additions and 216 deletions
|
|
@ -48,6 +48,19 @@ function dumpInterfaceStats(interface_name)
|
|||
print(', "b_to_a_num_pkts_send_error": '.. ifstats["bridge.b_to_a.num_pkts_send_error"])
|
||||
end
|
||||
|
||||
if(ifstats["profiles"] ~= nil) then
|
||||
print(", \"profiles\": { ")
|
||||
num = 0
|
||||
for key, value in pairsByKeys(ifstats["profiles"], rev) do
|
||||
if(num > 0) then
|
||||
print(", ")
|
||||
end
|
||||
print(' "'..key..'": '..value)
|
||||
num = num + 1
|
||||
end
|
||||
print(' }')
|
||||
end
|
||||
|
||||
print(", \"breed\": { ")
|
||||
num = 0
|
||||
for key, value in pairsByKeys(stats["breeds"], rev) do
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue