From c6842e8498c2d9b469890b38cd9f0d714392c445 Mon Sep 17 00:00:00 2001
From: feiyu02 <risaku@163.com>
Date: 星期五, 01 十二月 2023 13:22:02 +0800
Subject: [PATCH] 1. 修改优化日统计和风险统计的逻辑

---
 src/main/java/com/flightfeather/monitor/analysis/dust/exception/ExceptionNoFluctuation.kt |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/main/java/com/flightfeather/monitor/analysis/dust/exception/ExceptionNoFluctuation.kt b/src/main/java/com/flightfeather/monitor/analysis/dust/exception/ExceptionNoFluctuation.kt
index a6d0e4f..1f1daf2 100644
--- a/src/main/java/com/flightfeather/monitor/analysis/dust/exception/ExceptionNoFluctuation.kt
+++ b/src/main/java/com/flightfeather/monitor/analysis/dust/exception/ExceptionNoFluctuation.kt
@@ -21,6 +21,6 @@
     }
 
     override fun judgeDuration(sIndex: Int, eIndex: Int): Boolean {
-        return (eIndex - sIndex) >= config.longTimeNoChange
+        return (eIndex - 1 - sIndex) >= config.longTimeNoChange
     }
 }
\ No newline at end of file

--
Gitblit v1.9.3