Sentinel
Sentinel copied to clipboard
fix ClusterMetric#tryOccupyNext return the wrong wait seconds problem
Describe what this PR does / why we need it
修复了该问题:原本ClusterMetric#tryOccupyNext返回的等待时间直接使用了1000/sampleCount,但是在在intervalInMs不为1000ms时这不是一个窗口的时间。