Merge branch 'v3.0.x'

This commit is contained in:
Torkel Ödegaard 2016-05-20 09:06:39 +02:00
commit 91c6ebb06c

View File

@ -58,6 +58,10 @@ class PrometheusQueryCtrl extends QueryCtrl {
updateLink() {
var range = this.panelCtrl.range;
if (!range) {
return;
}
var rangeDiff = Math.ceil((range.to.valueOf() - range.from.valueOf()) / 1000);
var endTime = range.to.utc().format('YYYY-MM-DD HH:mm');
var expr = {