mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 07:29:32 +00:00
Fixed invalid termination with pcap interfaces with multiple -i devices
Disabled debug trace
This commit is contained in:
parent
0bf7fbc6bc
commit
7806e3caee
9 changed files with 24 additions and 31 deletions
|
|
@ -1,4 +1,5 @@
|
|||
local os_utils = require "os_utils"
|
||||
require "lua_utils"
|
||||
|
||||
SECONDS_IN_A_HOUR = 3600
|
||||
SECONDS_IN_A_DAY = SECONDS_IN_A_HOUR*24
|
||||
|
|
@ -394,8 +395,12 @@ function rrd_utils.makeRRD(basedir, when, if_id, key, rrdname, step, value)
|
|||
if(key ~= nil) then tskey = tskey ..":"..key end
|
||||
ntop.tsSet(when, if_id, tonumber(step), "iface", nil, rrdname, 0, tonumber(value))
|
||||
|
||||
if(step == 1 and (if_id == 0) and string.contains(name, "packets")) then
|
||||
-- io.write('Updating RRD ['.. if_id..'] '.. name .. " " .. value ..'\n')
|
||||
end
|
||||
|
||||
if(enable_second_debug) then
|
||||
io.write('Updating RRD ['.. if_id..'] '.. name .. " " .. value ..'\n')
|
||||
-- io.write('Updating RRD ['.. if_id..'] '.. name .. " " .. value ..'\n')
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue