This commit is contained in:
2020-05-29 16:21:24 +00:00
parent 3540baa0ec
commit 2d16052936
2 changed files with 3 additions and 3 deletions

View File

@@ -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;
}