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

This commit is contained in:
Torkel Ödegaard 2014-11-21 10:06:42 +01:00
parent 88c2f18b20
commit d198057eaf

View File

@ -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;
}