diff options
author | Piotr Dałek <piotr.dalek@ts.fujitsu.com> | 2016-03-10 12:48:49 +0100 |
---|---|---|
committer | Piotr Dałek <piotr.dalek@ts.fujitsu.com> | 2016-03-10 12:50:47 +0100 |
commit | 7a461a43adf2df1fd947dc50bd6fa274577fd63d (patch) | |
tree | 17a37245c510da20d2c88253550b249863e798d3 /src/common/obj_bencher.cc | |
parent | Merge pull request #7847 from wido/mirroring-fixes (diff) | |
download | ceph-7a461a43adf2df1fd947dc50bd6fa274577fd63d.tar.xz ceph-7a461a43adf2df1fd947dc50bd6fa274577fd63d.zip |
common/obj_bencher.cc: bump the precision of bandwidth field
When calculated final average bandwidth exceeds 999MB, it starts
to get printed in scientific notation. Bump up the bandwidth
field precision so it'll remain in floating-point format for
a bit longer.
Signed-off-by: Piotr Dałek <piotr.dalek@ts.fujitsu.com>
Diffstat (limited to 'src/common/obj_bencher.cc')
-rw-r--r-- | src/common/obj_bencher.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/common/obj_bencher.cc b/src/common/obj_bencher.cc index 28f4ffc48eb..9a2215e4616 100644 --- a/src/common/obj_bencher.cc +++ b/src/common/obj_bencher.cc @@ -568,7 +568,7 @@ int ObjBencher::write_bench(int secondsToRun, << "Total writes made: " << data.finished << std::endl << "Write size: " << data.op_size << std::endl << "Object size: " << data.object_size << std::endl - << "Bandwidth (MB/sec): " << setprecision(3) << bandwidth << std::endl + << "Bandwidth (MB/sec): " << setprecision(6) << bandwidth << std::endl << "Stddev Bandwidth: " << vec_stddev(data.history.bandwidth) << std::endl << "Max bandwidth (MB/sec): " << data.idata.max_bandwidth << std::endl << "Min bandwidth (MB/sec): " << data.idata.min_bandwidth << std::endl @@ -817,7 +817,7 @@ int ObjBencher::seq_read_bench(int seconds_to_run, int num_objects, int concurre << "Total reads made: " << data.finished << std::endl << "Read size: " << data.op_size << std::endl << "Object size: " << data.object_size << std::endl - << "Bandwidth (MB/sec): " << setprecision(3) << bandwidth << std::endl + << "Bandwidth (MB/sec): " << setprecision(6) << bandwidth << std::endl << "Average IOPS " << (int)(data.finished/runtime) << std::endl << "Stddev IOPS: " << vec_stddev(data.history.iops) << std::endl << "Max IOPS: " << data.idata.max_iops << std::endl @@ -1050,7 +1050,7 @@ int ObjBencher::rand_read_bench(int seconds_to_run, int num_objects, int concurr << "Total reads made: " << data.finished << std::endl << "Read size: " << data.op_size << std::endl << "Object size: " << data.object_size << std::endl - << "Bandwidth (MB/sec): " << setprecision(3) << bandwidth << std::endl + << "Bandwidth (MB/sec): " << setprecision(6) << bandwidth << std::endl << "Average IOPS: " << (int)(data.finished/runtime) << std::endl << "Stddev IOPS: " << vec_stddev(data.history.iops) << std::endl << "Max IOPS: " << data.idata.max_iops << std::endl |