Fix influxdb missing past comparison line

This commit is contained in:
emanuele-f 2018-08-01 09:26:54 +02:00
parent 6849bddf86
commit 9e8b7e7f76
2 changed files with 2 additions and 2 deletions

View file

@ -39,7 +39,7 @@ local function performQuery(tstart, tend, keep_total)
else
res = ts_utils.query(schema_id, tags, tstart, tend)
if(not keep_total) and (res.additional_series) then
if(not keep_total) and (res) and (res.additional_series) then
-- no need for total serie in normal queries
res.additional_series.total = nil
end