From 8c5dfb652cc72090ab89e267375529bba800ba30 Mon Sep 17 00:00:00 2001 From: John Cardinal Date: Thu, 17 Feb 2022 23:45:26 +0000 Subject: [PATCH] --- server/AyaNova/generator/CoreJobMetricsSnapshot.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/server/AyaNova/generator/CoreJobMetricsSnapshot.cs b/server/AyaNova/generator/CoreJobMetricsSnapshot.cs index 43214aa5..49e94012 100644 --- a/server/AyaNova/generator/CoreJobMetricsSnapshot.cs +++ b/server/AyaNova/generator/CoreJobMetricsSnapshot.cs @@ -21,7 +21,7 @@ namespace AyaNova.Biz private static TimeSpan _oldCPUTime = TimeSpan.Zero; private static DateTime _lastMMSnapshot = DateTime.UtcNow.Subtract(new TimeSpan(1, 1, 1, 1, 1));//ensure it captures on a fresh boot; - private static DateTime _lastDDSnapshot = DateTime.UtcNow.Subtract(new TimeSpan(1, 1, 1, 1, 1));//ensure it captures on a fresh boot + private static DateTime _lastDDSnapshot = DateTime.UtcNow.Subtract(new TimeSpan(1, 1, 1, 1, 1));//ensure it captures on a fresh boot; private static double _cpu = 0; @@ -29,7 +29,7 @@ namespace AyaNova.Biz private static TimeSpan tsOneMinute = new TimeSpan(0, 1, 0); private static TimeSpan ts24Hours = new TimeSpan(24, 0, 0); #else - private static TimeSpan tsOneMinute = new TimeSpan(24, 0, 0); + private static TimeSpan tsOneMinute = new TimeSpan(0, 1, 0); private static TimeSpan ts24Hours = new TimeSpan(24, 0, 0); #endif //////////////////////////////////////////////////////////////////////////////////////////////// @@ -88,8 +88,8 @@ namespace AyaNova.Biz //System.Diagnostics.Debug.WriteLine("MM SAVED"); } _lastMMSnapshot = now; -#if(DEBUG) - // log.LogInformation($"DEBUG DD ISSUE: during MM metrics snapshot, _lastDDSnapshot was {_lastDDSnapshot.ToString()}, IsAfterduration return value is {DateUtil.IsAfterDuration(_lastDDSnapshot, ts24Hours)} "); +#if (DEBUG) + log.LogInformation($"DEBUG DD ISSUE: during MM metrics snapshot, _lastDDSnapshot was {_lastDDSnapshot.ToString()}, IsAfterduration return value is {DateUtil.IsAfterDuration(_lastDDSnapshot, ts24Hours)} "); #endif }