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

Add time extremity with InfluxDB (#8722)

Louis Ventre 8 лет назад
Родитель
Сommit
97d1676fe8
1 измененных файлов с 2 добавлено и 3 удалено
  1. 2 3
      public/app/plugins/datasource/influxdb/datasource.ts

+ 2 - 3
public/app/plugins/datasource/influxdb/datasource.ts

@@ -263,10 +263,10 @@ export default class InfluxDatasource {
     var fromIsAbsolute = from[from.length-1] === 'ms';
 
     if (until === 'now()' && !fromIsAbsolute) {
-      return 'time > ' + from;
+      return 'time >= ' + from;
     }
 
-    return 'time > ' + from + ' and time < ' + until;
+    return 'time >= ' + from + ' and time <= ' + until;
   }
 
   getInfluxTime(date, roundUp) {
@@ -287,4 +287,3 @@ export default class InfluxDatasource {
     return date.valueOf() + 'ms';
   }
 }
-