Sentinel icon indicating copy to clipboard operation
Sentinel copied to clipboard

fix ClusterMetric#tryOccupyNext return the wrong wait seconds problem

Open sinberCS opened this issue 1 year ago • 1 comments

Describe what this PR does / why we need it

修复了该问题:原本ClusterMetric#tryOccupyNext返回的等待时间直接使用了1000/sampleCount,但是在在intervalInMs不为1000ms时这不是一个窗口的时间。

Does this pull request fix one issue?

Describe how you did it

Describe how to verify it

Special notes for reviews

sinberCS avatar Mar 18 '25 06:03 sinberCS

CLA assistant check
All committers have signed the CLA.

CLAassistant avatar Mar 18 '25 06:03 CLAassistant