mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 15:39:33 +00:00
Implements custom column in the hosts stats page
This commit is contained in:
parent
713415d232
commit
c40bfb1a8e
15 changed files with 227 additions and 400 deletions
|
|
@ -78,13 +78,6 @@ if host then
|
|||
res["column_last"] = secondsToTime(now-host["seen.last"]+1)
|
||||
res["column_traffic"] = bytesToSize(host["bytes.sent"]+host["bytes.rcvd"])
|
||||
|
||||
local label, fnctn = label2criteriakey(criteria)
|
||||
|
||||
local c = host.criteria
|
||||
if(c ~= nil) then
|
||||
res["column_"..criteria..""] = fnctn(c[label])
|
||||
end
|
||||
|
||||
if((host["throughput_trend_"..throughput_type] ~= nil)
|
||||
and (host["throughput_trend_"..throughput_type] > 0)) then
|
||||
local res_thpt
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue