rocksdb/monitoring
Prashant D 3c208e7616 HistogramStat: Handle divide by zero situation
Summary:
The num() might return cur_num as 0 and we are making sure that
cur_num will not be 0 down the path. The mult variable is being set to
100.0/cur_num which makes program crash when cur_num is 0.
Closes https://github.com/facebook/rocksdb/pull/3105

Differential Revision: D6222594

Pulled By: ajkr

fbshipit-source-id: 986154709897ff4dbbeb0e8aa81eb8c0b2a2db76
2017-11-02 11:41:50 -07:00
..
file_read_sample.h Change RocksDB License 2017-07-15 16:11:23 -07:00
histogram_test.cc fix inclusive-exclusiveness of histogram ToString 2017-09-01 10:56:34 -07:00
histogram_windowing.cc Replace dynamic_cast<> 2017-07-28 16:27:16 -07:00
histogram_windowing.h fix HistogramWindowingImpl copy-{assignment,constructor} 2017-09-01 11:11:56 -07:00
histogram.cc HistogramStat: Handle divide by zero situation 2017-11-02 11:41:50 -07:00
histogram.h Scale histogram bucket size by constant factor 2017-08-21 17:10:40 -07:00
instrumented_mutex.cc Change RocksDB License 2017-07-15 16:11:23 -07:00
instrumented_mutex.h Change RocksDB License 2017-07-15 16:11:23 -07:00
iostats_context_imp.h Directly refernce perf_context internally. 2017-09-15 17:15:10 -07:00
iostats_context_test.cc Change RocksDB License 2017-07-15 16:11:23 -07:00
iostats_context.cc Directly refernce perf_context internally. 2017-09-15 17:15:10 -07:00
perf_context_imp.h Directly refernce perf_context internally. 2017-09-15 17:15:10 -07:00
perf_context.cc perf_context measure user bytes read 2017-08-18 11:43:33 -07:00
perf_level_imp.h Change RocksDB License 2017-07-15 16:11:23 -07:00
perf_level.cc Change RocksDB License 2017-07-15 16:11:23 -07:00
perf_step_timer.h Change RocksDB License 2017-07-15 16:11:23 -07:00
statistics_test.cc Change RocksDB License 2017-07-15 16:11:23 -07:00
statistics.cc Change RocksDB License 2017-07-15 16:11:23 -07:00
statistics.h Change RocksDB License 2017-07-15 16:11:23 -07:00
thread_status_impl.cc Change RocksDB License 2017-07-15 16:11:23 -07:00
thread_status_updater_debug.cc Use RAII instead of pointers in cf_info_map 2017-09-28 14:26:47 -07:00
thread_status_updater.cc Fix unused var warnings in Release mode 2017-10-23 14:27:04 -07:00
thread_status_updater.h Use RAII instead of pointers in cf_info_map 2017-09-28 14:26:47 -07:00
thread_status_util_debug.cc Change RocksDB License 2017-07-15 16:11:23 -07:00
thread_status_util.cc Change RocksDB License 2017-07-15 16:11:23 -07:00
thread_status_util.h Change RocksDB License 2017-07-15 16:11:23 -07:00