Просмотр исходного кода

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.
Alin Sinpalean 8 лет назад
Родитель
Сommit
5d4b8b5a5c
1 измененных файлов с 3 добавлено и 4 удалено
  1. 3 4
      public/app/core/time_series2.ts

+ 3 - 4
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]);