InfluxDB: fixed issue with using custom/absolute from time to now(), Fixes #1113

pull/1140/head
Torkel Ödegaard 11 years ago
parent 88c2f18b20
commit d198057eaf
  1. 3
      src/app/services/influxdb/influxdbDatasource.js

@ -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…
Cancel
Save