]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
common/Throttle: fix typo for BackoffThrottle 12129/head
authorWei Jin <wjin.cn@gmail.com>
Tue, 22 Nov 2016 13:04:28 +0000 (21:04 +0800)
committerWei Jin <wjin.cn@gmail.com>
Tue, 22 Nov 2016 13:08:35 +0000 (21:08 +0800)
Fix formula so that pepople can understand it smoothly.

Signed-off-by: Wei Jin <wjin.cn@gmail.com>
src/common/Throttle.h

index b920d195de6f916b87be93b7e4016c86a2757c60..451e172b0beac6c0f98920d1ff979200b53b5ae7 100644 (file)
@@ -143,7 +143,7 @@ public:
  *
  * delay = 0, r \in [0, l)
  * delay = (r - l) * (e / (h - l)), r \in [l, h)
- * delay = h + (r - h)((m - e)/(1 - h))
+ * delay = e + (r - h)((m - e)/(1 - h))
  */
 class BackoffThrottle {
   std::mutex lock;