From 23dc8532d2ca0895981aadf32d34d614a0e16615 Mon Sep 17 00:00:00 2001 From: Wei Jin Date: Tue, 22 Nov 2016 21:04:28 +0800 Subject: [PATCH] common/Throttle: fix typo for BackoffThrottle Fix formula so that pepople can understand it smoothly. Signed-off-by: Wei Jin --- src/common/Throttle.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.47.3