浏览代码

fix, should fill null at end timestamp

Mitsuhiro Tanda 10 年之前
父节点
当前提交
ff8b25a50a
共有 1 个文件被更改,包括 1 次插入1 次删除
  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;
-      for (var t = baseTimestamp; t < endTimestamp; t += stepMs) {
+      for (var t = baseTimestamp; t <= endTimestamp; t += stepMs) {
         dps.push([null, t]);
       }