Local var.

This commit is contained in:
Jordan Sissel 2011-02-13 16:38:59 -08:00
parent 3b6ae5bd9d
commit 441f022bb0

View file

@ -46,7 +46,7 @@
jQuery.getJSON("/api/histogram", logstash.params, function(histogram, text, jqxhr) {
/* Load the data into the graph */
flot_data = [];
var flot_data = [];
// histogram is an array of { "key": ..., "count": ... }
for (var i in histogram) {
flot_data.push([parseInt(histogram[i]["key"]), histogram[i]["count"]])