mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 07:29:32 +00:00
Code cleanup
This commit is contained in:
parent
9d9b79c1b6
commit
a3d36634e3
53 changed files with 75 additions and 321 deletions
|
|
@ -13,7 +13,7 @@ local debug = false
|
|||
local debug_process = false -- Show flow processed information
|
||||
|
||||
interface.select(ifname)
|
||||
ifstats = aggregateInterfaceStats(interface.getStats())
|
||||
ifstats = interface.getStats()
|
||||
-- printGETParameters(_GET)
|
||||
|
||||
-- Table parameters
|
||||
|
|
@ -101,8 +101,8 @@ if application ~= nil and application ~= "" then
|
|||
--print(paginfo["l7protoFilter"].." / "..application)
|
||||
end
|
||||
|
||||
res = interface.getFlowsInfo(host, paginfo)
|
||||
flows_stats,total = aggregateFlowsStats(res)
|
||||
flows_stats = interface.getFlowsInfo(host, paginfo)
|
||||
total = #flows_stats
|
||||
|
||||
print ("{ \"currentPage\" : " .. currentPage .. ",\n \"data\" : [\n")
|
||||
-- tprint(flows_stats)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue