|
|
@@ -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) |
|
|
|