This commit is contained in:
2020-05-26 23:52:31 +00:00
parent e76bc3fb9e
commit fccd4dcd6a
2 changed files with 4 additions and 4 deletions

View File

@@ -15,16 +15,16 @@ namespace AyaNova.Biz
internal static class CoreJobMetricsSnapshot
{
private static ILogger log = AyaNova.Util.ApplicationLogging.CreateLogger("CoreJobMetricsSnapshot");
private static TimeSpan tsDataRetention = new TimeSpan(396, 0, 0, 0, 0);//one year and one month approximately
private static TimeSpan tsDataRetention = new TimeSpan(365, 0, 0, 0, 0);//one year
private static Process _process = Process.GetCurrentProcess();
private static TimeSpan _oldCPUTime = TimeSpan.Zero;
private static DateTime _lastSnapshot = DateTime.UtcNow;
private static DateTime _lastRpsTime = DateTime.UtcNow;
// private static DateTime _lastRpsTime = DateTime.UtcNow;
private static double _cpu = 0;
#if(DEBUG)
private static TimeSpan tsOneMinute = new TimeSpan(0, 0, 10);
private static TimeSpan tsOneMinute = new TimeSpan(0, 1,0);
#else
private static TimeSpan tsOneMinute = new TimeSpan(0, 1, 0);
#endif