Implements custom column in the hosts stats page

This commit is contained in:
Simone Mainardi 2019-02-20 12:14:34 +01:00
parent 713415d232
commit c40bfb1a8e
15 changed files with 227 additions and 400 deletions

View file

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