From 5d4b8b5a5ccb66db7c7dabcc3644977d03ffb652 Mon Sep 17 00:00:00 2001 From: Alin Sinpalean Date: Wed, 6 Sep 2017 16:50:55 +0200 Subject: [PATCH] Have 'Hide series with only zeros' ignore nulls (#9179) * Prometheus: Fix actual step computation logic when a min_step is specified and the range is longer than min_step * 11000. * Have the 'Hide series with only zeros' option also apply to series with some null values. --- public/app/core/time_series2.ts | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/public/app/core/time_series2.ts b/public/app/core/time_series2.ts index b8b7ef6ed26..fb58f618e91 100644 --- a/public/app/core/time_series2.ts +++ b/public/app/core/time_series2.ts @@ -191,10 +191,9 @@ export default class TimeSeries { this.stats.logmin = currentValue; } - } - - if (currentValue !== 0) { - this.allIsZero = false; + if (currentValue !== 0) { + this.allIsZero = false; + } } result.push([currentTime, currentValue]);