mirror of
https://github.com/grafana/grafana.git
synced 2025-09-26 07:03:58 +08:00
InfluxDB: InfluxQL: always apply time interval end (#34308)
This commit is contained in:
@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user