From 0e3a0d90cc4dc75e3f1a599fb131570063ffaa4b Mon Sep 17 00:00:00 2001 From: ngfrolov Date: Tue, 10 Oct 2023 15:06:58 +0500 Subject: [PATCH] optimize WorkWellInfoUpdate --- AsbCloudInfrastructure/Services/WellInfoService.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/AsbCloudInfrastructure/Services/WellInfoService.cs b/AsbCloudInfrastructure/Services/WellInfoService.cs index 0632bafc..bbaba879 100644 --- a/AsbCloudInfrastructure/Services/WellInfoService.cs +++ b/AsbCloudInfrastructure/Services/WellInfoService.cs @@ -59,6 +59,8 @@ public class WellInfoService var subsystemStat = await subsystemOperationTimeService .GetStatByActiveWells(wellsIds, token); + subsystemStat = subsystemStat.ToArray(); + var count = activeWells.Count(); var i = 0d; WellMapInfo = activeWells.Select(well => {