From acaf83c06411dd56b19876c747784c4a30d353f8 Mon Sep 17 00:00:00 2001 From: zy Date: Thu, 30 Nov 2023 23:53:32 -0500 Subject: [PATCH] =?UTF-8?q?=E5=90=AB=E4=B9=89=E5=8F=98=E5=8C=96=E9=87=8D?= =?UTF-8?q?=E5=91=BD=E5=90=8D:=20hasp=5Fmonitor=5Finterval=20-->=20hasp=5F?= =?UTF-8?q?slave=5Fverf=5Finterval?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- platform/src/hasp_verify.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/platform/src/hasp_verify.c b/platform/src/hasp_verify.c index f5ee8f0..bb66829 100644 --- a/platform/src/hasp_verify.c +++ b/platform/src/hasp_verify.c @@ -483,19 +483,19 @@ static hasp_status_t encrypt_decrypt(hasp_handle_t handle) void hasp_monitor(uint64_t feature_id, uint64_t interval) { uint64_t hasp_monitor_feature_id = feature_id; - uint64_t hasp_monitor_interval = interval; + uint64_t hasp_slave_verf_interval = interval; - if (hasp_monitor_interval >= MAX_SLAVE_VERF_INTRV_S) + if (hasp_slave_verf_interval >= MAX_SLAVE_VERF_INTRV_S) { - hasp_monitor_interval = MAX_SLAVE_VERF_INTRV_S; + hasp_slave_verf_interval = MAX_SLAVE_VERF_INTRV_S; } - if (hasp_monitor_interval == 0) + if (hasp_slave_verf_interval == 0) { - hasp_monitor_interval = DEF_SLAVE_VERF_INTRV_S; + hasp_slave_verf_interval = DEF_SLAVE_VERF_INTRV_S; } - LOG_INFO("hasp_monitor: Feature ID: %ld, Interval: %ld s", hasp_monitor_feature_id, hasp_monitor_interval); + LOG_INFO("hasp_monitor: Feature ID: %ld, Interval: %ld s", hasp_monitor_feature_id, hasp_slave_verf_interval); signal(SIGUSR1, signal_handler); signal(SIGUSR2, signal_handler); @@ -607,9 +607,9 @@ void hasp_monitor(uint64_t feature_id, uint64_t interval) ATOMIC_SET(&shm->feature_id, hasp_monitor_feature_id); ATOMIC_SET(&shm->status, 1); ATOMIC_SET(&shm->timestamp, timestamp); - ATOMIC_SET(&shm->interval, hasp_monitor_interval); + ATOMIC_SET(&shm->interval, hasp_slave_verf_interval); - LOG_DEBUG("hasp_monitor: Set feature_id: %ld, timestamp: %ld, interval: %ld, status: %ld", hasp_monitor_feature_id, timestamp, hasp_monitor_interval, 1LU); + LOG_DEBUG("hasp_monitor: Set feature_id: %ld, timestamp: %ld, slave verf interval: %ld, status: %ld", hasp_monitor_feature_id, timestamp, hasp_slave_verf_interval, 1LU); } else {