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:
emanuele-f 2019-05-28 17:17:21 +02:00
parent 0fcb328404
commit e74f6ee3b7
5 changed files with 38 additions and 13 deletions

View file

@ -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