Fixed bug in footer.lua that caused a JS error that prevented the page from being updated
Moved utility functions from footer lua script to ntopng_utils.js
This commit is contained in:
Luca Deri 2016-12-01 09:26:27 +01:00
parent a6839c2de0
commit ff20879987
6 changed files with 126 additions and 130 deletions

View file

@ -91,7 +91,7 @@ else
label, fnctn = label2criteriakey(criteria)
c = host.criteria
print("\"column_"..criteria.."\" : \"" .. fnctn(c[label]).. "\", ")
if(c ~= nil) then print("\"column_"..criteria.."\" : \"" .. fnctn(c[label]).. "\", ") end
if((host["throughput_trend_"..throughput_type] ~= nil)
and (host["throughput_trend_"..throughput_type] > 0)) then