This commit is contained in:
@@ -42,7 +42,7 @@ namespace AyaNova.Biz
|
||||
{
|
||||
|
||||
|
||||
if (DateUtil.IsAfterDuration(_lastMMSnapshot, tsOneHour))
|
||||
if (DateUtil.IsAfterDuration(_lastMMSnapshot, tsOneMinute))
|
||||
{
|
||||
/////////////////////////////////////////////
|
||||
//ONE MINUTE SNAPS
|
||||
@@ -177,7 +177,7 @@ namespace AyaNova.Biz
|
||||
DateTime ClearDate = DateTime.UtcNow - tsDataRetention;
|
||||
using (AyContext ct = ServiceProviderProvider.DBContext)
|
||||
{
|
||||
ct.Database.ExecuteSqlInterpolated($"delete from ametricmm where t < {ClearDate}");
|
||||
// ct.Database.ExecuteSqlInterpolated($"delete from ametricmm where t < {ClearDate.ToUniversalTime()}");
|
||||
}
|
||||
_lastDDSnapshot = now;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user