diff --git a/AsbCloudInfrastructure/Services/Subsystems/SubsystemService.cs b/AsbCloudInfrastructure/Services/Subsystems/SubsystemService.cs index e2ab1e13..412200bd 100644 --- a/AsbCloudInfrastructure/Services/Subsystems/SubsystemService.cs +++ b/AsbCloudInfrastructure/Services/Subsystems/SubsystemService.cs @@ -157,8 +157,8 @@ internal class SubsystemService : ISubsystemService SumDepthInterval = sumDepthInterval, OperationCount = operationCount, }; - - oscillationStat.KUsage = oscillationStat.SumDepthInterval / oscillationStat.SumOperationDepthInterval; + if(oscillationStat.SumOperationDepthInterval != 0d) + oscillationStat.KUsage = oscillationStat.SumDepthInterval / oscillationStat.SumOperationDepthInterval; return oscillationStat; } @@ -264,6 +264,9 @@ internal class SubsystemService : ISubsystemService foreach (var well in wells) { + if (well.Id == 676) { + ; + } var hoursOffset = well.Timezone.Hours; var geDateStartUtc = geDate?.ToUtcDateTimeOffset(hoursOffset);