fix(prometheus): fixed bug in prometheus query editor, fixes #5107

This commit is contained in:
Torkel Ödegaard 2016-05-20 09:03:52 +02:00
parent 37821e6d63
commit df0ddc0b50

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 = {