Преглед изворни кода

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 година
родитељ
комит
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;
           this.stats.logmin = currentValue;
         }
         }
 
 
-      }
-
-      if (currentValue !== 0) {
-        this.allIsZero = false;
+        if (currentValue !== 0) {
+          this.allIsZero = false;
+        }
       }
       }
 
 
       result.push([currentTime, currentValue]);
       result.push([currentTime, currentValue]);