diff options
author | 2017-09-01 10:03:40 -0700 | |
---|---|---|
committer | 2017-09-01 10:03:40 -0700 | |
commit | da5cd59ed3f383318fb01b1bf461489cc828d453 (patch) | |
tree | 5c42d6faa538ab9068559624d7d56e983350854a /src/core/lib/debug/stats_data.h | |
parent | 357f3f61623b95654216432aff4e9bb4e1c9b779 (diff) |
Restrict histograms to integral boundaries
Diffstat (limited to 'src/core/lib/debug/stats_data.h')
-rw-r--r-- | src/core/lib/debug/stats_data.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/core/lib/debug/stats_data.h b/src/core/lib/debug/stats_data.h index 4d1078dfdb..5350264c03 100644 --- a/src/core/lib/debug/stats_data.h +++ b/src/core/lib/debug/stats_data.h @@ -177,7 +177,7 @@ typedef enum { if (_val.uint < 4652218415073722368ull) { \ GRPC_STATS_INC_HISTOGRAM( \ (exec_ctx), GRPC_STATS_HISTOGRAM_TCP_WRITE_IOV_SIZE, \ - grpc_stats_table_3[((_val.uint - 4622945017495814144ull) >> 49)]); \ + grpc_stats_table_3[((_val.uint - 4622945017495814144ull) >> 48)]); \ } else { \ GRPC_STATS_INC_HISTOGRAM( \ (exec_ctx), GRPC_STATS_HISTOGRAM_TCP_WRITE_IOV_SIZE, \ @@ -249,7 +249,7 @@ typedef enum { if (_val.uint < 4652218415073722368ull) { \ GRPC_STATS_INC_HISTOGRAM( \ (exec_ctx), GRPC_STATS_HISTOGRAM_TCP_READ_IOV_SIZE, \ - grpc_stats_table_3[((_val.uint - 4622945017495814144ull) >> 49)]); \ + grpc_stats_table_3[((_val.uint - 4622945017495814144ull) >> 48)]); \ } else { \ GRPC_STATS_INC_HISTOGRAM( \ (exec_ctx), GRPC_STATS_HISTOGRAM_TCP_READ_IOV_SIZE, \ @@ -283,12 +283,12 @@ typedef enum { } \ } \ } while (false) -extern const double grpc_stats_table_0[64]; +extern const int grpc_stats_table_0[64]; extern const uint8_t grpc_stats_table_1[87]; -extern const double grpc_stats_table_2[64]; -extern const uint8_t grpc_stats_table_3[52]; +extern const int grpc_stats_table_2[64]; +extern const uint8_t grpc_stats_table_3[104]; extern const int grpc_stats_histo_buckets[6]; extern const int grpc_stats_histo_start[6]; -extern const double *const grpc_stats_histo_bucket_boundaries[6]; +extern const int *const grpc_stats_histo_bucket_boundaries[6]; #endif /* GRPC_CORE_LIB_DEBUG_STATS_DATA_H */ |