Prechádzať zdrojové kódy

fix, should fill null at end timestamp

Mitsuhiro Tanda 10 rokov pred
rodič
commit
ff8b25a50a

+ 1 - 1
public/app/plugins/datasource/prometheus/datasource.js

@@ -230,7 +230,7 @@ function (angular, _, moment, dateMath) {
       });
 
       var endTimestamp = end * 1000;
-      for (var t = baseTimestamp; t < endTimestamp; t += stepMs) {
+      for (var t = baseTimestamp; t <= endTimestamp; t += stepMs) {
         dps.push([null, t]);
       }