From e15b58228bd2e4b31ed455b3db396da29e474db5 Mon Sep 17 00:00:00 2001 From: ngfrolov Date: Thu, 21 Sep 2023 18:02:41 +0500 Subject: [PATCH] Fix SubsystemOperationTimeService.CalcStat(). Kusage --- .../Services/Subsystems/SubsystemOperationTimeService.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/AsbCloudInfrastructure/Services/Subsystems/SubsystemOperationTimeService.cs b/AsbCloudInfrastructure/Services/Subsystems/SubsystemOperationTimeService.cs index beafaf35..0bb5acd6 100644 --- a/AsbCloudInfrastructure/Services/Subsystems/SubsystemOperationTimeService.cs +++ b/AsbCloudInfrastructure/Services/Subsystems/SubsystemOperationTimeService.cs @@ -182,7 +182,7 @@ namespace AsbCloudInfrastructure.Services.Subsystems IdSubsystem = IdSubsystemAKB, SubsystemName = "АПД", UsedTimeHours = apdParts.Sum(part => part.UsedTimeHours), - KUsage = apdParts.Sum(part => part.KUsage), + KUsage = apdParts.Sum(part => part.SumDepthInterval) / GetDepthIntervalSubsystem(IdSubsystemAKB, depthInterval), SumDepthInterval = apdParts.Sum(part => part.SumDepthInterval), OperationCount = apdParts.Sum(part => part.OperationCount), };