]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: usage dump_unsigned instead dump_int in dump_usage_categories_info 25808/head
authoryuliyang <yuliyang@cmss.chinamobile.com>
Mon, 7 Jan 2019 07:14:07 +0000 (15:14 +0800)
committeryuliyang <yuliyang@cmss.chinamobile.com>
Mon, 7 Jan 2019 07:14:07 +0000 (15:14 +0800)
Signed-off-by: yuliyang <yuliyang@cmss.chinamobile.com>
src/rgw/rgw_usage.cc

index a82bc66cc6b4e6f5f253b485a8e63f2e21adb6cb..fa2ed2a850374c5b11274d8a3e175a518527ed8d 100644 (file)
@@ -20,10 +20,10 @@ static void dump_usage_categories_info(Formatter *formatter, const rgw_usage_log
     const rgw_usage_data& usage = uiter->second;
     formatter->open_object_section("entry");
     formatter->dump_string("category", uiter->first);
-    formatter->dump_int("bytes_sent", usage.bytes_sent);
-    formatter->dump_int("bytes_received", usage.bytes_received);
-    formatter->dump_int("ops", usage.ops);
-    formatter->dump_int("successful_ops", usage.successful_ops);
+    formatter->dump_unsigned("bytes_sent", usage.bytes_sent);
+    formatter->dump_unsigned("bytes_received", usage.bytes_received);
+    formatter->dump_unsigned("ops", usage.ops);
+    formatter->dump_unsigned("successful_ops", usage.successful_ops);
     formatter->close_section(); // entry
   }
   formatter->close_section(); // categories