aboutsummaryrefslogtreecommitdiffhomepage
path: root/tools/codegen
diff options
context:
space:
mode:
authorGravatar Craig Tiller <ctiller@google.com>2017-09-05 15:08:39 -0700
committerGravatar Craig Tiller <ctiller@google.com>2017-09-05 15:08:39 -0700
commit3e3dd080877be8951ce35f98711b3932291d04bb (patch)
treef273563ba051051c94410de97d36ecb7a9369b75 /tools/codegen
parent07530dbbeb25b89b9fbaaea2c9823d5ea157a038 (diff)
Bounds fixes
Diffstat (limited to 'tools/codegen')
-rwxr-xr-xtools/codegen/core/gen_stats_data.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/codegen/core/gen_stats_data.py b/tools/codegen/core/gen_stats_data.py
index 60cbd6436f..df6cd5a6bd 100755
--- a/tools/codegen/core/gen_stats_data.py
+++ b/tools/codegen/core/gen_stats_data.py
@@ -155,7 +155,7 @@ def gen_bucket_code(histogram):
code += 'return;\n'
code += '}\n'
code += 'GRPC_STATS_INC_HISTOGRAM((exec_ctx), GRPC_STATS_HISTOGRAM_%s, '% histogram.name.upper()
- code += 'grpc_stats_histo_find_bucket_slow((exec_ctx), value, grpc_stats_table_%d, %d));\n' % (bounds_idx, len(bounds))
+ code += 'grpc_stats_histo_find_bucket_slow((exec_ctx), value, grpc_stats_table_%d, %d));\n' % (bounds_idx, histogram.buckets)
return (code, bounds_idx)
# utility: print a big comment block into a set of files