From 8caaf59597a40bba2f0b76f290f9c5a993366714 Mon Sep 17 00:00:00 2001 From: fengyang Date: Fri, 23 May 2025 10:02:20 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=A3=E5=86=B3=E6=9F=A5=E8=AF=A2=E8=BF=91?= =?UTF-8?q?=E4=B8=89=E5=8D=81=E5=A4=A9=E6=95=B0=E6=8D=AE=E8=BF=94=E5=9B=9E?= =?UTF-8?q?=E5=BC=82=E5=B8=B8=20Signed-off-by:=20fengyang=20?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- services/common/include/bundle_active_constant.h | 1 + services/common/include/bundle_active_core.h | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/services/common/include/bundle_active_constant.h b/services/common/include/bundle_active_constant.h index 55321c9..78a6b75 100644 --- a/services/common/include/bundle_active_constant.h +++ b/services/common/include/bundle_active_constant.h @@ -78,6 +78,7 @@ const int32_t FORM_UID_COLUMN_INDEX = 8; const int32_t QUERY_CONDITION_VALID = 0; const int32_t QUERY_CONDITION_INVALID = -1; const int64_t TWO_SECONDS = 2 * 1000LL; +const int64_t TEN_MINUTES = 10 * 60 * 1000LL; const int64_t THIRTY_MINUTE = 30 * 60 * 1000LL; const int64_t SIX_DAY_IN_MILLIS_MAX_DEBUG = 6 * 1 * 10 * 60 * 1000LL; const int64_t SIX_DAY_IN_MILLIS_MAX = 6 * 24 * 60 * 60 * 1000LL; diff --git a/services/common/include/bundle_active_core.h b/services/common/include/bundle_active_core.h index a497ab8..a34b0a5 100644 --- a/services/common/include/bundle_active_core.h +++ b/services/common/include/bundle_active_core.h @@ -254,7 +254,7 @@ private: void OnObserverDied(const wptr &remote); void OnObserverDiedInner(const wptr &remote); int64_t flushInterval_; - static const int64_t TIME_CHANGE_THRESHOLD_MILLIS = TWO_SECONDS; + static const int64_t TIME_CHANGE_THRESHOLD_MILLIS = TEN_MINUTES; const int32_t DEFAULT_USER_ID = -1; std::map visibleActivities_; // use weak_ptr to avoid circulate reference of core and handler. -- Gitee