InfluxDB: InfluxQL: always apply time interval end (#34308)

mckn/cloud-alerting-viz
Gábor Farkas 4 years ago committed by GitHub
parent de95bf2c04
commit f48708bb9e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 5
      public/app/plugins/datasource/influxdb/datasource.ts

@ -530,11 +530,6 @@ export default class InfluxDatasource extends DataSourceWithBackend<InfluxQuery,
getTimeFilter(options: any) {
const from = this.getInfluxTime(options.rangeRaw.from, false, options.timezone);
const until = this.getInfluxTime(options.rangeRaw.to, true, options.timezone);
const fromIsAbsolute = from[from.length - 1] === 'ms';
if (until === 'now()' && !fromIsAbsolute) {
return 'time >= ' + from;
}
return 'time >= ' + from + ' and time <= ' + until;
}

Loading…
Cancel
Save