From 77b3ec8d6887b4c8c2843ce79738a19c2a8a2574 Mon Sep 17 00:00:00 2001 From: houdisheng Date: Tue, 15 Mar 2022 17:40:51 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9debugCore=E6=9C=AA=E5=88=9D?= =?UTF-8?q?=E5=A7=8B=E5=8C=96=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: houdisheng --- services/common/src/bundle_active_core.cpp | 2 ++ services/packagegroup/src/bundle_active_group_handler.cpp | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/services/common/src/bundle_active_core.cpp b/services/common/src/bundle_active_core.cpp index c5467ed..49800e0 100644 --- a/services/common/src/bundle_active_core.cpp +++ b/services/common/src/bundle_active_core.cpp @@ -55,8 +55,10 @@ BundleActiveCore::BundleActiveCore() currentUsedUser_ = -1; if (DEBUG_ON) { flushInterval_ = TWO_MINUTE; + debugCore_ = true; } else { flushInterval_ = THIRTY_MINUTE; + debugCore_ = false; } } diff --git a/services/packagegroup/src/bundle_active_group_handler.cpp b/services/packagegroup/src/bundle_active_group_handler.cpp index 53bef3c..5654ef1 100644 --- a/services/packagegroup/src/bundle_active_group_handler.cpp +++ b/services/packagegroup/src/bundle_active_group_handler.cpp @@ -30,7 +30,7 @@ BundleActiveGroupHandler::BundleActiveGroupHandler (const std::shared_ptr &runner, const bool debug) : AppExecFwk::EventHandler(runner) { if (debug) { - checkIdleInterval_ = TWO_MINUTE; + checkIdleInterval_ = ONE_MINUTE; } else { checkIdleInterval_ = THREE_HOUR; } -- Gitee