diff --git a/services/common/include/bundle_active_constant.h b/services/common/include/bundle_active_constant.h index 55321c981c9c3cba2b759fa32eff6f4d65110d28..78a6b7542c9e9246fa989b309c04b8111ff2a46b 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 a497ab862d54a53cf182f0dddffd3eb074acc864..a34b0a51c948daa1e9d9a569042071356c229ca4 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.