forked from ddrilling/AsbCloudServer
Откат лишнего кода
This commit is contained in:
parent
8b761779fd
commit
6cd42a546c
@ -34,7 +34,7 @@ namespace AsbCloudInfrastructure.Background.PeriodicWorks
|
||||
|
||||
var cacheRequest = new TelemetryDataRequest()
|
||||
{
|
||||
GeDate = DateTime.UtcNow.AddDays(-100)
|
||||
GeDate = DateTime.UtcNow.AddDays(-Gap)
|
||||
};
|
||||
var idTelemetries = telemetryDataCache.GetIds(cacheRequest).ToArray();
|
||||
|
||||
@ -49,10 +49,6 @@ namespace AsbCloudInfrastructure.Background.PeriodicWorks
|
||||
for( var i =0; i < idTelemetries.Length; i++)
|
||||
{
|
||||
var idTelemetry = idTelemetries[i];
|
||||
if(idTelemetry == 783)
|
||||
{
|
||||
;
|
||||
}
|
||||
var lastDate = stats.FirstOrDefault(s => s.IdTelemetry == idTelemetry)?.DateEnd.ToUniversalTime() ?? DateTimeOffset.UnixEpoch;
|
||||
var statsCount = await CreateStatForTelemetryFromDate(idTelemetry, lastDate, dataSaubService, dataSaubStatRepo, detectedOperationRepository, token);
|
||||
onProgressCallback($"Calculate stat for telemetry: {idTelemetry}; from {lastDate}; results count: {statsCount};", 100*i / idTelemetries.Length);
|
||||
|
Loading…
Reference in New Issue
Block a user