mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Add time extremity with InfluxDB (#8722)
This commit is contained in:
parent
58528a951a
commit
97d1676fe8
@ -263,10 +263,10 @@ export default class InfluxDatasource {
|
|||||||
var fromIsAbsolute = from[from.length-1] === 'ms';
|
var fromIsAbsolute = from[from.length-1] === 'ms';
|
||||||
|
|
||||||
if (until === 'now()' && !fromIsAbsolute) {
|
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) {
|
getInfluxTime(date, roundUp) {
|
||||||
@ -287,4 +287,3 @@ export default class InfluxDatasource {
|
|||||||
return date.valueOf() + 'ms';
|
return date.valueOf() + 'ms';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user