Added tab pane for traffic profiles

This commit is contained in:
Luca Deri 2015-11-07 18:28:05 +01:00
parent 714352b25e
commit 4a5948ff27
8 changed files with 131 additions and 216 deletions

View file

@ -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