diff --git a/HealthMonitor.WebApi/Worker.cs b/HealthMonitor.WebApi/Worker.cs index 952c4fe..0f74800 100644 --- a/HealthMonitor.WebApi/Worker.cs +++ b/HealthMonitor.WebApi/Worker.cs @@ -2611,10 +2611,10 @@ namespace HealthMonitor.WebApi private DateTime GetSampleTimeFromLastUpdate(DateTime lastUpdate,int interval) { DateTime nowInterval = lastUpdate; - if (nowInterval.Second > 0) - { - nowInterval = nowInterval.AddMinutes(1); - } + //if (nowInterval.Second > 0) + //{ + // nowInterval = nowInterval.AddMinutes(1); + //} // 计算last_update到上一间隔的分钟数 int minutesToSubtract = nowInterval.Minute % interval;