Browse Source

fix, should fill null at end timestamp

Mitsuhiro Tanda 10 years ago
parent
commit
ff8b25a50a
1 changed files with 1 additions and 1 deletions
  1. 1 1
      public/app/plugins/datasource/prometheus/datasource.js

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

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