mirror of
https://github.com/ntop/ntopng.git
synced 2026-05-01 16:30:10 +00:00
Fix host pools stats
This commit is contained in:
parent
f396145060
commit
0893f928ad
5 changed files with 220 additions and 216 deletions
|
|
@ -19,14 +19,13 @@ local flow = interface.findFlowByKeyAndHashId(tonumber(flow_key), tonumber(flow_
|
|||
local throughput_type = getThroughputType()
|
||||
|
||||
sendHTTPContentTypeHeader('text/html')
|
||||
--sendHTTPHeader('application/json')
|
||||
|
||||
if(flow == nil) then
|
||||
print('{}')
|
||||
print('{}')
|
||||
else
|
||||
|
||||
diff0 = os.time()-flow["seen.first"]
|
||||
diff = os.time()-flow["seen.last"]
|
||||
diff0 = os.time()-flow["seen.first"]
|
||||
diff = os.time()-flow["seen.last"]
|
||||
-- Default values
|
||||
thpt = 0
|
||||
thpt_display = bitsToSize(0)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue