Browse Source

调整

master
H Vs 2 months ago
parent
commit
d115c80d0d
1 changed files with 13 additions and 1 deletions
  1. +13
    -1
      HealthMonitor.WebApi/Worker.cs

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

@@ -2475,10 +2475,20 @@ namespace HealthMonitor.WebApi

try
{
var CalNow = DateTime.Now;
var during = TimeSpan.FromSeconds(300); //5分钟

var c = 0;
while (true)
{

if (DateTime.Now - CalNow > during)
{
_logger.LogInformation($"{heartRate.Serialno} 超过1分钟,迭代完成跳出循环 ");
break;
}


var segmentStatStartTime = boundaryStatStartTime.AddMinutes(c * INTERVAL_FHR);
var segmentStatEndTime = segmentStatStartTime.AddMinutes(INTERVAL_FHR);
c++;
@@ -2697,6 +2707,8 @@ namespace HealthMonitor.WebApi
_logger.LogInformation($"{heartRate.Serialno} 时间边界,迭代完成跳出循环 ");
break;
}

}
}
catch (Exception ex)


Loading…
Cancel
Save