From fee9a1050a4eee201bc52215dbeeacb8e052a553 Mon Sep 17 00:00:00 2001 From: yuliyang Date: Mon, 7 Jan 2019 15:14:07 +0800 Subject: [PATCH] rgw: usage dump_unsigned instead dump_int in dump_usage_categories_info Signed-off-by: yuliyang --- src/rgw/rgw_usage.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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 -- 2.47.3