From: Wei Jin Date: Tue, 22 Nov 2016 13:04:28 +0000 (+0800) Subject: common/Throttle: fix typo for BackoffThrottle X-Git-Tag: v11.1.0~173^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=23dc8532d2ca0895981aadf32d34d614a0e16615;p=ceph.git common/Throttle: fix typo for BackoffThrottle Fix formula so that pepople can understand it smoothly. Signed-off-by: Wei Jin --- diff --git a/src/common/Throttle.h b/src/common/Throttle.h index b920d195de6f..451e172b0bea 100644 --- a/src/common/Throttle.h +++ b/src/common/Throttle.h @@ -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;