mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 07:29:32 +00:00
Change to convert a float to an integer prior to call rrd_update. This patch should fix #122.
This commit is contained in:
parent
603e9d8898
commit
d609b8c80d
2 changed files with 9 additions and 3 deletions
|
|
@ -877,7 +877,7 @@ function makeRRD(basedir, ifname, rrdname, step, value)
|
|||
else
|
||||
create_rrd(name, 1, rrdname)
|
||||
end
|
||||
ntop.rrd_update(name, "N:".. value)
|
||||
ntop.rrd_update(name, "N:".. toint(value))
|
||||
if(enable_second_debug == 1) then io.write('Updating RRD ['.. ifname..'] '.. name .. " " .. value ..'\n') end
|
||||
end
|
||||
|
||||
|
|
@ -936,7 +936,7 @@ function dumpSingleTreeCounters(basedir, label, host, verbose)
|
|||
|
||||
fname = dname..fixPath("/"..k2..".rrd")
|
||||
createSingleRRDcounter(fname, verbose)
|
||||
ntop.rrd_update(fname, "N:"..v2)
|
||||
ntop.rrd_update(fname, "N:"..toint(v2))
|
||||
if(verbose) then print("\t"..fname.."\n") end
|
||||
end
|
||||
else
|
||||
|
|
@ -948,7 +948,7 @@ function dumpSingleTreeCounters(basedir, label, host, verbose)
|
|||
|
||||
fname = dname..fixPath("/"..k1..".rrd")
|
||||
createSingleRRDcounter(fname, verbose)
|
||||
ntop.rrd_update(fname, "N:"..v1)
|
||||
ntop.rrd_update(fname, "N:"..toint(v1))
|
||||
if(verbose) then print("\t"..fname.."\n") end
|
||||
end
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue