Commit 97d1676f by Louis Ventre Committed by Torkel Ödegaard

Add time extremity with InfluxDB (#8722)

parent 58528a95
......@@ -263,10 +263,10 @@ export default class InfluxDatasource {
var fromIsAbsolute = from[from.length-1] === 'ms';
if (until === 'now()' && !fromIsAbsolute) {
return 'time > ' + from;
return 'time >= ' + from;
}
return 'time > ' + from + ' and time < ' + until;
return 'time >= ' + from + ' and time <= ' + until;
}
getInfluxTime(date, roundUp) {
......@@ -287,4 +287,3 @@ export default class InfluxDatasource {
return date.valueOf() + 'ms';
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment