Fix SubsystemOperationTimeService.CalcStat(). Kusage

This commit is contained in:
ngfrolov 2023-09-21 18:02:41 +05:00
parent 790f4eef0d
commit e15b58228b
Signed by untrusted user who does not match committer: ng.frolov
GPG Key ID: E99907A0357B29A7

View File

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