mirror of
https://github.com/ntop/ntopng.git
synced 2026-05-05 19:15:03 +00:00
Fixes past timeseries not correctly formatted
This commit is contained in:
parent
759530df95
commit
b2b61e9452
4 changed files with 4 additions and 5 deletions
|
|
@ -97,7 +97,7 @@ function getDefaultLegendFormatter(options) {
|
|||
// Entries
|
||||
const seriesHTML = data.series.filter(s => s.isVisible && s.yHTML).map(s => {
|
||||
if (!s.isVisible) return "";
|
||||
if (!isNaN(s.y) && !s.labelHTML.includes("Ago")) {
|
||||
if (!isNaN(s.y) && !s.labelHTML.includes(i18n('details.ago'))) {
|
||||
// Skip e.g. 30 min Ago series from the total
|
||||
setTotal = true;
|
||||
total = total + Math.abs(s.y)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue