瀏覽代碼

调整

datasub12_previous
H Vs 1 年之前
父節點
當前提交
210423f55d
共有 1 個檔案被更改,包括 2 行新增2 行删除
  1. +2
    -2
      HealthMonitor.Service/Resolver/BloodpressResolver.cs

+ 2
- 2
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



Loading…
取消
儲存