]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
tools: correct total size formatting
authorzhengyin <zhengyin@huayun.com>
Wed, 25 Apr 2018 11:00:59 +0000 (19:00 +0800)
committerzhengyin <zhengyin@huayun.com>
Wed, 25 Apr 2018 11:03:36 +0000 (19:03 +0800)
Signed-off-by: Zheng Yin <zhengyin@huayun.com>
src/tools/ceph_kvstore_tool.cc

index 8e0c7f46849cd4455a19eaca71565ffa5ea54776..685763094e6f47af9d4dfde5dc249cb827c99aef 100644 (file)
@@ -257,7 +257,7 @@ class StoreTool
 
       auto cur_duration = std::chrono::duration<double>(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) {