Experimental TS code

This commit is contained in:
Luca Deri 2018-03-24 11:37:04 +01:00
parent cfcc88554d
commit b8a870b631
13 changed files with 405 additions and 46 deletions

View file

@ -392,7 +392,7 @@ function rrd_utils.makeRRD(basedir, when, if_id, key, rrdname, step, value)
local tskey = if_id
if(key ~= nil) then tskey = tskey ..":"..key end
ntop.tsSet(when, if_id, tonumber(step), "iface", nil, rrdname, tonumber(value), 0)
ntop.tsSet(when, if_id, tonumber(step), "iface", nil, rrdname, 0, tonumber(value))
if(enable_second_debug) then
io.write('Updating RRD ['.. if_id..'] '.. name .. " " .. value ..'\n')