From 2e7cb9d270262aeece15ea21be37c6b6acc31930 Mon Sep 17 00:00:00 2001 From: Nathan Froyd Date: Tue, 11 Sep 2012 04:33:16 -0400 Subject: [PATCH] Bug 789371 - fix min/max/n_buckets for boolean and flag histograms; r=taras --- toolkit/components/telemetry/histogram_tools.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/toolkit/components/telemetry/histogram_tools.py b/toolkit/components/telemetry/histogram_tools.py index a43a7d223cdd..41cc075958e2 100644 --- a/toolkit/components/telemetry/histogram_tools.py +++ b/toolkit/components/telemetry/histogram_tools.py @@ -27,8 +27,6 @@ def check_numeric_limits(dmin, dmax, n_buckets): def linear_buckets(dmin, dmax, n_buckets): check_numeric_limits(dmin, dmax, n_buckets) - if n_buckets == 2: - return [0, 1, 2] ret_array = [0] * n_buckets dmin = float(dmin) dmax = float(dmax) @@ -176,7 +174,7 @@ associated with the histogram. Returns None if no guarding is necessary.""" @staticmethod def boolean_flag_bucket_parameters(definition): - return (0, 1, 2) + return (1, 2, 3) @staticmethod def linear_bucket_parameters(definition):