From 210423f55d8d0c8206eefb34aec57ccc305a2599 Mon Sep 17 00:00:00 2001 From: H Vs Date: Wed, 1 Nov 2023 17:59:08 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- HealthMonitor.Service/Resolver/BloodpressResolver.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/HealthMonitor.Service/Resolver/BloodpressResolver.cs b/HealthMonitor.Service/Resolver/BloodpressResolver.cs index 5f32d93..cf8b5fc 100644 --- a/HealthMonitor.Service/Resolver/BloodpressResolver.cs +++ b/HealthMonitor.Service/Resolver/BloodpressResolver.cs @@ -250,7 +250,7 @@ namespace HealthMonitor.Service.Resolver if (string.IsNullOrWhiteSpace(schedule_push)) { // 注册首次下推 -#if DEBUG +#if DEBUG1 await _serviceEtcd.PutValAsync(key, result, 60*1, false).ConfigureAwait(false); #else //DateTime sNow = DateTime.Now; @@ -280,7 +280,7 @@ namespace HealthMonitor.Service.Resolver timeUntilNextRun = timeUntilNextRun.Add(TimeSpan.FromDays(1)); } - var ttl = timeUntilNextRun.Seconds; + var ttl =(long)timeUntilNextRun.TotalSeconds; await _serviceEtcd.PutValAsync(key, result,ttl, false).ConfigureAwait(false); #endif