代码拉取完成,页面将自动刷新
同步操作将从 src-openEuler/dim 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
From 6617fb034f69009893c33c8dd6b4e1485b77800f Mon Sep 17 00:00:00 2001
From: Huaxin Lu <luhuaxin1@huawei.com>
Date: Wed, 14 Feb 2024 13:21:27 +0800
Subject: [PATCH 17/26] Dont queue measurement task when baseline failed
---
src/core/dim_core_measure.c | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/src/core/dim_core_measure.c b/src/core/dim_core_measure.c
index 4ccbd0c..ff134e5 100644
--- a/src/core/dim_core_measure.c
+++ b/src/core/dim_core_measure.c
@@ -120,6 +120,10 @@ static void measure_work_cb(struct work_struct *work)
static void baseline_work_cb(struct work_struct *work)
{
dim_measure_task_measure(DIM_BASELINE, &dim_core_handle);
+ /* if baseline is failed, dont perform measurement */
+ if (dim_measure_status_error(&dim_core_handle))
+ return;
+
queue_delayed_measure_work();
}
@@ -244,4 +248,4 @@ void dim_core_measure_destroy(void)
dim_measure_destroy(&dim_core_handle);
dim_core_policy_destroy();
mutex_unlock(&dim_core_measure_lock);
-}
\ No newline at end of file
+}
--
2.33.0
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。