Added explicit numeric conversion to see if it can help with #246

This commit is contained in:
Luca Deri 2015-10-21 22:42:53 +02:00
parent 4e1d667a6b
commit 724be6b83a
2 changed files with 9 additions and 9 deletions

View file

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