- Don't bother retrying if we got 0 results for our histogram.

This commit is contained in:
Jordan Sissel 2011-02-13 03:53:31 -08:00
parent 782ab1b04c
commit 3b6ae5bd9d

View file

@ -60,7 +60,7 @@
*
* This queries the backend several times, but should be reasonably
* speedy as this behaves roughly as a binary search. */
if (flot_data.length < 6 && tries > 0) {
if (flot_data.length < 6 && flot_data.length > 0 && tries > 0) {
//console.log("Histogram bucket " + logstash.params.interval + " has only " + flot_data.length + " data points, trying smaller...");
logstash.params.interval /= 2;
if (logstash.params.interval < 1000) {