mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 07:29:32 +00:00
Timeseries update
This commit is contained in:
parent
17c77c4248
commit
da2bee8623
6 changed files with 59 additions and 52 deletions
|
|
@ -970,7 +970,7 @@ function create_rrd_num(name, ds, step)
|
|||
end
|
||||
end
|
||||
|
||||
function makeRRD(basedir, ifname, key, rrdname, step, value)
|
||||
function makeRRD(basedir, when, ifname, key, rrdname, step, value)
|
||||
local name = fixPath(basedir .. "/" .. rrdname .. ".rrd")
|
||||
|
||||
if(string.contains(rrdname, "num_")) then
|
||||
|
|
@ -983,7 +983,7 @@ function makeRRD(basedir, ifname, key, rrdname, step, value)
|
|||
|
||||
local tskey = ifname
|
||||
if(key ~= nil) then tskey = tskey ..":"..key end
|
||||
ntop.tsSet(ifname, tonumber(step), "iface", nil, rrdname, tonumber(value), 0)
|
||||
ntop.tsSet(when, ifname, tonumber(step), "iface", nil, rrdname, tonumber(value), 0)
|
||||
|
||||
if(enable_second_debug) then
|
||||
io.write('Updating RRD ['.. ifname..'] '.. name .. " " .. value ..'\n')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue