This commit is contained in:
@@ -21,7 +21,7 @@ namespace AyaNova.Biz
|
|||||||
|
|
||||||
private static TimeSpan _oldCPUTime = TimeSpan.Zero;
|
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 _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;
|
private static double _cpu = 0;
|
||||||
|
|
||||||
@@ -29,7 +29,7 @@ namespace AyaNova.Biz
|
|||||||
private static TimeSpan tsOneMinute = new TimeSpan(0, 1, 0);
|
private static TimeSpan tsOneMinute = new TimeSpan(0, 1, 0);
|
||||||
private static TimeSpan ts24Hours = new TimeSpan(24, 0, 0);
|
private static TimeSpan ts24Hours = new TimeSpan(24, 0, 0);
|
||||||
#else
|
#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);
|
private static TimeSpan ts24Hours = new TimeSpan(24, 0, 0);
|
||||||
#endif
|
#endif
|
||||||
////////////////////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
@@ -88,8 +88,8 @@ namespace AyaNova.Biz
|
|||||||
//System.Diagnostics.Debug.WriteLine("MM SAVED");
|
//System.Diagnostics.Debug.WriteLine("MM SAVED");
|
||||||
}
|
}
|
||||||
_lastMMSnapshot = now;
|
_lastMMSnapshot = now;
|
||||||
#if(DEBUG)
|
#if (DEBUG)
|
||||||
// log.LogInformation($"DEBUG DD ISSUE: during MM metrics snapshot, _lastDDSnapshot was {_lastDDSnapshot.ToString()}, IsAfterduration return value is {DateUtil.IsAfterDuration(_lastDDSnapshot, ts24Hours)} ");
|
log.LogInformation($"DEBUG DD ISSUE: during MM metrics snapshot, _lastDDSnapshot was {_lastDDSnapshot.ToString()}, IsAfterduration return value is {DateUtil.IsAfterDuration(_lastDDSnapshot, ts24Hours)} ");
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user