mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 23:49:33 +00:00
Partially fixes ts error
This commit is contained in:
parent
66c9728468
commit
8875901d62
4 changed files with 6 additions and 8 deletions
|
|
@ -24,9 +24,10 @@ local ts_dump = {}
|
|||
-- ########################################################
|
||||
|
||||
function ts_dump.iface_update_ndpi_rrds(when, _ifname, ifstats, verbose, config)
|
||||
local ts_id = getIfacenDPITsName()
|
||||
for k in pairs(ifstats["ndpi"]) do
|
||||
if config.interface_ndpi_timeseries_full then
|
||||
ts_utils.append("iface:ndpi_full", {
|
||||
ts_utils.append(ts_id, {
|
||||
ifid = ifstats.id,
|
||||
protocol = k,
|
||||
bytes_sent = ifstats["ndpi"][k]["bytes.sent"],
|
||||
|
|
@ -38,7 +39,7 @@ function ts_dump.iface_update_ndpi_rrds(when, _ifname, ifstats, verbose, config)
|
|||
print("[" .. __FILE__() .. ":" .. __LINE__() .. "] " .. _ifname .. ": " .. k .. "=" .. v .. "\n")
|
||||
end
|
||||
|
||||
ts_utils.append("iface:ndpi", {
|
||||
ts_utils.append(ts_id, {
|
||||
ifid = ifstats.id,
|
||||
protocol = k,
|
||||
bytes = v
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue