web/js: fix display error for vectors in console

This commit is contained in:
Fabian Reinartz 2015-07-10 00:43:43 +02:00
parent a5093e08a0
commit 9e599976c4
2 changed files with 39 additions and 39 deletions

File diff suppressed because one or more lines are too long

View file

@ -579,7 +579,7 @@ Prometheus.Graph.prototype.handleConsoleResponse = function(data, textStatus) {
for (var i = 0; i < data.result.length; i++) {
var s = data.result[i];
var tsName = self.metricToTsName(s.metric);
tBody.append("<tr><td>" + escapeHTML(tsName) + "</td><td>" + s[1] + "</td></tr>");
tBody.append("<tr><td>" + escapeHTML(tsName) + "</td><td>" + s.value[1] + "</td></tr>");
}
break;
case "matrix":