]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
histogram: rename set -> set_bin
authorSage Weil <sage@inktank.com>
Fri, 24 Jan 2014 02:05:40 +0000 (18:05 -0800)
committerSage Weil <sage@inktank.com>
Sun, 16 Feb 2014 06:07:04 +0000 (22:07 -0800)
Signed-off-by: Sage Weil <sage@inktank.com>
src/common/TrackedOp.cc
src/include/histogram.h

index 4c940d308b1308d2f05ea8ec0d44d851f03ecc5c..a1abf9ff1025b2b3e0e12c4fa2d99e4401669d72 100644 (file)
@@ -210,7 +210,7 @@ void OpTracker::get_age_ms_histogram(pow2_hist_t *h)
       continue;
     }
     if (count)
-      h->set(bin, count);
+      h->set_bin(bin, count);
     while (lb > ms) {
       bin--;
       lb >>= 1;
@@ -218,7 +218,7 @@ void OpTracker::get_age_ms_histogram(pow2_hist_t *h)
     count = 1;
   }
   if (count)
-    h->set(bin, count);
+    h->set_bin(bin, count);
 }
 
 void OpTracker::mark_event(TrackedOp *op, const string &dest)
index 73ddd5d289b51916e963e0ae626517e35cdc49e0..5feebfc1e757fe80b7981b7d2beeece643153d77 100644 (file)
@@ -43,11 +43,12 @@ public:
   void clear() {
     h.clear();
   }
-  void set(int bin, int32_t v) {
+  void set_bin(int bin, int32_t count) {
     _expand_to(bin + 1);
-    h[bin] = v;
+    h[bin] = count;
     _contract();
   }
+
   static int calc_bits_of(int t) {
     int b = 0;
     while (t > 0) {