From: yuliyang Date: Mon, 7 Jan 2019 07:14:07 +0000 (+0800) Subject: rgw: usage dump_unsigned instead dump_int in dump_usage_categories_info X-Git-Tag: v15.0.0~105^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F25808%2Fhead;p=ceph.git rgw: usage dump_unsigned instead dump_int in dump_usage_categories_info Signed-off-by: yuliyang --- diff --git a/src/rgw/rgw_usage.cc b/src/rgw/rgw_usage.cc index a82bc66cc6b..fa2ed2a8503 100644 --- a/src/rgw/rgw_usage.cc +++ b/src/rgw/rgw_usage.cc @@ -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