mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-30 07:59:35 +00:00
Implements #6150
This commit is contained in:
parent
0783e8a2b1
commit
8c43f5b28b
8 changed files with 42 additions and 13 deletions
|
|
@ -94,7 +94,7 @@ function dumpInterfaceStats(ifid)
|
|||
res["packets"] = ifstats.stats_since_reset.packets
|
||||
res["bytes"] = ifstats.stats_since_reset.bytes
|
||||
res["drops"] = ifstats.stats_since_reset.drops
|
||||
|
||||
|
||||
if ifstats.stats_since_reset.discarded_probing_packets then
|
||||
res["discarded_probing_packets"] = ifstats.stats_since_reset.discarded_probing_packets
|
||||
res["discarded_probing_bytes"] = ifstats.stats_since_reset.discarded_probing_bytes
|
||||
|
|
@ -139,6 +139,8 @@ function dumpInterfaceStats(ifid)
|
|||
res["num_hosts"] = ifstats.stats.hosts
|
||||
res["num_local_hosts"] = ifstats.stats.local_hosts
|
||||
res["num_devices"] = ifstats.stats.devices
|
||||
res["num_rcvd_only_hosts"] = ifstats.stats.hosts_rcvd_only
|
||||
res["num_local_rcvd_only_hosts"] = ifstats.stats.local_rcvd_only_hosts
|
||||
else
|
||||
local num_hosts = countHosts()
|
||||
res["num_hosts"] = num_hosts.hosts
|
||||
|
|
@ -324,12 +326,13 @@ function dumpBriefInterfaceStats(ifid)
|
|||
res["num_hosts"] = ifstats.stats.hosts
|
||||
res["num_local_hosts"] = ifstats.stats.local_hosts
|
||||
res["num_devices"] = ifstats.stats.devices
|
||||
res["num_rcvd_only_hosts"] = ifstats.stats.hosts_rcvd_only
|
||||
res["num_local_rcvd_only_hosts"] = ifstats.stats.local_rcvd_only_hosts
|
||||
else
|
||||
res["num_hosts"] = countHosts().hosts
|
||||
res["num_local_hosts"] = countHosts().local_hosts
|
||||
end
|
||||
|
||||
|
||||
res["localtime"] = os.date("%H:%M:%S %z", res["epoch"])
|
||||
res["uptime"] = secondsToTime(uptime)
|
||||
if ntop.isPro() then
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue