mirror of
https://github.com/grafana/grafana.git
synced 2025-02-20 11:48:34 -06:00
InfluxDB: fixed issue with using custom/absolute from time to now(), Fixes #1113
This commit is contained in:
parent
88c2f18b20
commit
d198057eaf
@ -372,8 +372,9 @@ function (angular, _, kbn, InfluxSeries, InfluxQueryBuilder) {
|
||||
function getTimeFilter(options) {
|
||||
var from = getInfluxTime(options.range.from);
|
||||
var until = getInfluxTime(options.range.to);
|
||||
var fromIsAbsolute = from[from.length-1] === 's';
|
||||
|
||||
if (until === 'now()') {
|
||||
if (until === 'now()' && !fromIsAbsolute) {
|
||||
return 'time > now() - ' + from;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user