]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: fix bucket stats
authorYehuda Sadeh <yehuda@hq.newdream.net>
Sat, 24 Sep 2011 04:32:53 +0000 (21:32 -0700)
committerYehuda Sadeh <yehuda@hq.newdream.net>
Sat, 24 Sep 2011 04:32:53 +0000 (21:32 -0700)
src/rgw/rgw_rados.cc

index 04cfddbe046977c6eca19cfdee675cbc5b6d50e7..0f449768f75b6a3977f329cc2831edae706ecae1 100644 (file)
@@ -1593,7 +1593,7 @@ int RGWRados::get_bucket_stats(rgw_bucket& bucket, map<RGWObjCategory, RGWBucket
     RGWBucketStats& s = stats[category];
     struct rgw_bucket_category_stats& stats = iter->second;
     s.category = (RGWObjCategory)iter->first;
-    s.num_kb = (stats.total_size_rounded + 1023 / 1024);
+    s.num_kb = ((stats.total_size_rounded + 1023) / 1024);
     s.num_objects = stats.num_entries;
   }