mirror of
https://gitee.com/openharmony/graphic_graphic_2d
synced 2024-11-23 23:20:32 +00:00
rs 告警清理0509
Signed-off-by: lihui <lihui359@huawei.com>
This commit is contained in:
parent
de63137e1b
commit
05146ce35c
@ -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;
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user