rs 告警清理0509

Signed-off-by: lihui <lihui359@huawei.com>
This commit is contained in:
lihui 2024-05-09 20:46:38 +08:00
parent de63137e1b
commit 05146ce35c
2 changed files with 2 additions and 2 deletions

View File

@ -81,7 +81,7 @@ namespace OHOS {
namespace Rosen {
namespace {
constexpr uint32_t PHONE_MAX_APP_WINDOW_NUM = 1;
constexpr uint32_t CACHE_MAX_UPDATE_TIME = 2;
constexpr int32_t CACHE_MAX_UPDATE_TIME = 2;
constexpr int32_t VISIBLEAREARATIO_FORQOS = 3;
constexpr int ROTATION_90 = 90;
constexpr int ROTATION_180 = 180;

View File

@ -136,7 +136,7 @@ bool SyncFenceTracker::CheckGpuSubhealthEventLimit()
auto now = std::chrono::system_clock::now();
std::time_t t = std::chrono::system_clock::to_time_t(now);
std::tm *tm = std::localtime(&t);
if (gpuSubhealthEventNum == 0 || ((tm != nullptr) && tm->tm_yday > gpuSubhealthEventDay)) {
if (tm != nullptr && (gpuSubhealthEventNum == 0 || tm->tm_yday > gpuSubhealthEventDay)) {
gpuSubhealthEventDay = tm->tm_yday;
gpuSubhealthEventNum = 0;
HILOG_DEBUG(LOG_CORE, "first event of %{public}" PRId32, gpuSubhealthEventDay);