Browse Source

胎心计算时间间隔15分钟

datasub12_fetal_heart_rate_0
H Vs 4 months ago
parent
commit
40b7f62257
2 changed files with 4 additions and 3 deletions
  1. +2
    -2
      HealthMonitor.Service/Resolver/PregnancyHeartRateResolver.cs
  2. +2
    -1
      HealthMonitor.WebApi/Worker.cs

+ 2
- 2
HealthMonitor.Service/Resolver/PregnancyHeartRateResolver.cs View File

@@ -202,8 +202,8 @@ namespace HealthMonitor.Service.Resolver
var scheduleFetalPush = await _serviceEtcd.GetValAsync(fetalKey).ConfigureAwait(false);
if (string.IsNullOrWhiteSpace(scheduleFetalPush))
{
var fetalInterval = (int)watchConfig["interval"]!;
//var fetalInterval = (int)watchConfig["interval"]!;
var fetalInterval = 60 * 15;
var fetalNow= DateTime.Now;
var fetalTimeNextRun = fetalNow.Add(TimeSpan.FromSeconds(fetalInterval));
var fetalTTL = fetalInterval;


+ 2
- 1
HealthMonitor.WebApi/Worker.cs View File

@@ -290,7 +290,8 @@ namespace HealthMonitor.WebApi
var scheduleFetalPush = await _serviceEtcd.GetValAsync(fetalKey).ConfigureAwait(false);
if (string.IsNullOrWhiteSpace(scheduleFetalPush))
{
var fetalInterval = (int)watchConfig!["interval"]!;
// var fetalInterval = (int)watchConfig!["interval"]!;
var fetalInterval = 60 * 15;

var fetalNow = DateTime.Now;
var fetalTimeNextRun = fetalNow.Add(TimeSpan.FromSeconds(fetalInterval));


Loading…
Cancel
Save