mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 15:39:33 +00:00
Fix host timeseries first point problem.
An additional point is now stored on the ts database to address the issue. Fixes #2184
This commit is contained in:
parent
0fcb328404
commit
e74f6ee3b7
5 changed files with 38 additions and 13 deletions
|
|
@ -409,6 +409,11 @@ function ts_dump.run_5min_dump(_ifname, ifstats, config, when, time_threshold, s
|
|||
end
|
||||
end
|
||||
|
||||
if(host_ts.initial_point ~= nil) then
|
||||
-- Dump the first point
|
||||
ts_dump.host_update_rrd(host_ts.initial_point_time, host_key, host_ts.initial_point, ifstats, verbose, config)
|
||||
end
|
||||
|
||||
for _, host_point in ipairs(host_ts or {}) do
|
||||
local instant = host_point.instant
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue