mirror of https://github.com/prometheus/prometheus
Merge pull request #2080 from sman591/ui-aborted-requests
ui: don’t consider aborted requests completepull/2065/merge
commit
5238a6845e
File diff suppressed because one or more lines are too long
|
@ -364,7 +364,10 @@ Prometheus.Graph.prototype.submitQuery = function() {
|
||||||
self.showError("Error executing query: " + err);
|
self.showError("Error executing query: " + err);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
complete: function() {
|
complete: function(xhr, resp) {
|
||||||
|
if (resp == "abort") {
|
||||||
|
return;
|
||||||
|
}
|
||||||
var duration = new Date().getTime() - startTime;
|
var duration = new Date().getTime() - startTime;
|
||||||
self.evalStats.html("Load time: " + duration + "ms <br /> Resolution: " + resolution + "s");
|
self.evalStats.html("Load time: " + duration + "ms <br /> Resolution: " + resolution + "s");
|
||||||
self.spinner.hide();
|
self.spinner.hide();
|
||||||
|
|
Loading…
Reference in New Issue