Display total number of returned elements on console (#2532)

Display total number of returned elements on console
This commit is contained in:
Conor Broderick 2017-04-03 11:52:25 +01:00 committed by Brian Brazil
parent e18be8d1a5
commit dafae52efa
2 changed files with 80 additions and 79 deletions

File diff suppressed because one or more lines are too long

View file

@ -415,7 +415,8 @@ Prometheus.Graph.prototype.submitQuery = function() {
return; return;
} }
var duration = new Date().getTime() - startTime; var duration = new Date().getTime() - startTime;
self.evalStats.html("Load time: " + duration + "ms <br /> Resolution: " + resolution + "s"); var totalTimeSeries = xhr.responseJSON.data.result.length;
self.evalStats.html("Load time: " + duration + "ms <br /> Resolution: " + resolution + "s <br />" + "Total time series: " + totalTimeSeries);
self.spinner.hide(); self.spinner.hide();
} }
}); });