From ef9dc9df2ad70c00b7a2f12a70f94189d38486b5 Mon Sep 17 00:00:00 2001 From: SpecialYang <940129520@qq.com> Date: Fri, 13 Dec 2024 17:54:52 +0800 Subject: [PATCH] fix window deprecated check --- .../alibaba/csp/sentinel/slots/statistic/base/LeapArray.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sentinel-core/src/main/java/com/alibaba/csp/sentinel/slots/statistic/base/LeapArray.java b/sentinel-core/src/main/java/com/alibaba/csp/sentinel/slots/statistic/base/LeapArray.java index e67b40e99a..4fe6ed0abf 100755 --- a/sentinel-core/src/main/java/com/alibaba/csp/sentinel/slots/statistic/base/LeapArray.java +++ b/sentinel-core/src/main/java/com/alibaba/csp/sentinel/slots/statistic/base/LeapArray.java @@ -268,7 +268,7 @@ public boolean isWindowDeprecated(/*@NonNull*/ WindowWrap windowWrap) { } public boolean isWindowDeprecated(long time, WindowWrap windowWrap) { - return time - windowWrap.windowStart() > intervalInMs; + return time - windowWrap.windowStart() >= intervalInMs; } /**