Various script fixes

This commit is contained in:
Luca Deri 2016-08-10 15:06:17 +02:00
parent 9cf1866e2f
commit cc78c4f37e
3 changed files with 21 additions and 13 deletions

View file

@ -867,7 +867,7 @@ function makeRRD(basedir, ifname, rrdname, step, value)
create_rrd(name, 1, rrdname)
end
ntop.rrd_update(name, "N:".. tolongint(value))
if(enable_second_debug == 1) then io.write('Updating RRD ['.. ifname..'] '.. name .. " " .. value ..'\n') end
if(enable_second_debug) then io.write('Updating RRD ['.. ifname..'] '.. name .. " " .. value ..'\n') end
end
function createRRDcounter(path, step, verbose)