diff --git a/frameworks/src/bundle_state_common.cpp b/frameworks/src/bundle_state_common.cpp index d69dacdb1caf0c34f152b26a0ca12251d41504f1..84c6186be7a3e5ec0537d17e95fee4718eeabd53 100644 --- a/frameworks/src/bundle_state_common.cpp +++ b/frameworks/src/bundle_state_common.cpp @@ -612,7 +612,7 @@ std::shared_ptr>> Bu std::vector packageStats; if (endTime - beginTime <= INTERVAL_TIME) { errCode = BundleActiveClient::GetInstance().QueryBundleStatsInfoByInterval(packageStats, - BundleStateCondition::IntervalType::BY_DAILY, beginTime, endTime); + BundleStateCondition::IntervalType::BY_MONTHLY, beginTime, endTime); } else { errCode = BundleActiveClient::GetInstance().QueryBundleStatsInfoByInterval(packageStats, BundleStateCondition::IntervalType::BY_OPTIMIZED, beginTime, endTime); diff --git a/services/common/include/bundle_active_constant.h b/services/common/include/bundle_active_constant.h index f4ee663ffe28230c38903f03016b680bdc78798b..b588ef501811ff84e407516c2887d3f36e9f5916 100644 --- a/services/common/include/bundle_active_constant.h +++ b/services/common/include/bundle_active_constant.h @@ -80,6 +80,7 @@ const int32_t QUERY_CONDITION_VALID = 0; const int32_t QUERY_CONDITION_INVALID = -1; const uint32_t BUNDLE_ACTIVE_DB_NAME_MAX_LENGTH = 100; 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 6d46b1c30bb0e856771db6d7d87a69a2503b9c01..43d7640ebdb1da1dba49d5607b19fec13268b468 100644 --- a/services/common/include/bundle_active_core.h +++ b/services/common/include/bundle_active_core.h @@ -253,7 +253,7 @@ private: void AddbundleUninstalledUid(const int32_t uid); void DelayRemoveBundleUninstalledUid(const int32_t uid); 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_;