diff options
author | 2017-09-13 10:13:46 -0700 | |
---|---|---|
committer | 2017-09-13 10:13:46 -0700 | |
commit | 2346480d721e1f9bb93226d8e5b172e7ffb093c2 (patch) | |
tree | 78a9b4d42cf574303ce2275c4eed778ebf01badf /tools | |
parent | 43ce6c108ef0e12c6d1df64c31ecb11895752fcd (diff) | |
parent | f2cbd6c81eab267fb8c04121ff76ffbbe689dfa1 (diff) |
Merge pull request #12541 from ctiller/qps_fix
Fix qps_test histogram python code
Diffstat (limited to 'tools')
-rw-r--r-- | tools/run_tests/performance/massage_qps_stats_helpers.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/run_tests/performance/massage_qps_stats_helpers.py b/tools/run_tests/performance/massage_qps_stats_helpers.py index 400a0c82bf..a2fe4ae6c3 100644 --- a/tools/run_tests/performance/massage_qps_stats_helpers.py +++ b/tools/run_tests/performance/massage_qps_stats_helpers.py @@ -23,7 +23,7 @@ def _threshold_for_count_below(buckets, boundaries, count_below): if count_so_far == count_below: # this bucket hits the threshold exactly... we should be midway through # any run of zero values following the bucket - for upper_idx in range(lower_idx + 1, num_buckets): + for upper_idx in range(lower_idx + 1, len(buckets)): if buckets[upper_idx] != 0: break return (boundaries[lower_idx] + boundaries[upper_idx]) / 2.0 |