From 086ead065690c32a4e0310db1bcf66cf6128d6fc Mon Sep 17 00:00:00 2001 From: zhengyin Date: Wed, 25 Apr 2018 19:00:59 +0800 Subject: [PATCH] tools: correct total size formatting Signed-off-by: Zheng Yin --- src/tools/ceph_kvstore_tool.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/tools/ceph_kvstore_tool.cc b/src/tools/ceph_kvstore_tool.cc index 8e0c7f46849..685763094e6 100644 --- a/src/tools/ceph_kvstore_tool.cc +++ b/src/tools/ceph_kvstore_tool.cc @@ -257,7 +257,7 @@ class StoreTool auto cur_duration = std::chrono::duration(coarse_mono_clock::now() - started_at); std::cout << "ts = " << cur_duration.count() << "s, copied " << total_keys - << " keys so far (" << stringify(si_u_t(total_size)) << ")" + << " keys so far (" << stringify(byte_u_t(total_size)) << ")" << std::endl; } while (it->valid()); @@ -267,7 +267,7 @@ class StoreTool std::cout << "summary:" << std::endl; std::cout << " copied " << total_keys << " keys" << std::endl; std::cout << " used " << total_txs << " transactions" << std::endl; - std::cout << " total size " << stringify(si_u_t(total_size)) << std::endl; + std::cout << " total size " << stringify(byte_u_t(total_size)) << std::endl; std::cout << " from '" << store_path << "' to '" << other_path << "'" << std::endl; std::cout << " duration " << time_taken.count() << " seconds" << std::endl; @@ -476,7 +476,7 @@ int main(int argc, const char *argv[]) return 1; } std::cout << "(" << url_escape(prefix) << "," << url_escape(key) - << ") size " << si_u_t(bl.length()) << std::endl; + << ") size " << byte_u_t(bl.length()) << std::endl; } else if (cmd == "set") { if (argc < 8) { -- 2.39.5