Fixes incorrect links and empty data (#9306)

This commit is contained in:
Matteo Biscosi 2025-06-24 10:52:06 +02:00
parent 2f23fe973f
commit cb84816e62
4 changed files with 420 additions and 398 deletions

View file

@ -963,6 +963,9 @@ function driver:timeseries_top(options, top_tags)
partials[name] = partials[name] + serie_point * step
end
end
if statistics and statistics.total == 0 then
goto continue
end
available_items[serie_tags[top_tag]] = sum * step
available_tags[serie_tags[top_tag]] = {serie_tags, partials}
@ -971,6 +974,7 @@ function driver:timeseries_top(options, top_tags)
statistics = statistics,
tags = options_merged.tags
}
::continue::
end
end