From df0b3555b3161ae1194ed6b51bbeebeb5701116b Mon Sep 17 00:00:00 2001 From: Olga Nemt Date: Wed, 14 Feb 2024 10:51:20 +0500 Subject: [PATCH] =?UTF-8?q?=D0=9C=D0=B8=D0=BD=D0=B8-=D0=BF=D1=80=D0=B0?= =?UTF-8?q?=D0=B2=D0=BA=D0=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Report/ProcessMapReportDataSaubStatService.cs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/AsbCloudInfrastructure/Services/ProcessMaps/Report/ProcessMapReportDataSaubStatService.cs b/AsbCloudInfrastructure/Services/ProcessMaps/Report/ProcessMapReportDataSaubStatService.cs index 35bf06a8..27d914a6 100644 --- a/AsbCloudInfrastructure/Services/ProcessMaps/Report/ProcessMapReportDataSaubStatService.cs +++ b/AsbCloudInfrastructure/Services/ProcessMaps/Report/ProcessMapReportDataSaubStatService.cs @@ -253,7 +253,7 @@ namespace AsbCloudInfrastructure.Services.ProcessMaps.Report { var diffDepth = span[i].DepthEnd - span[i].DepthStart; - sumPressure += diffDepth * ((span[i].PressureIdle ?? 0) - span[i].Pressure); + sumPressure += diffDepth * (span[i].Pressure - (span[i].PressureIdle ?? 0.0)); sumAxialLoadSp += diffDepth * (span[i].AxialLoadSp ?? 0); sumAxialLoad += diffDepth * span[i].AxialLoad; sumRotorTorqueSp += diffDepth * (span[i].RotorTorqueSp ?? 0); @@ -265,13 +265,13 @@ namespace AsbCloudInfrastructure.Services.ProcessMaps.Report maxRotorSpeed = span[i].RotorSpeed > maxRotorSpeed ? span[i].RotorSpeed : maxRotorSpeed; if (span[i].IdFeedRegulator == LimitingParameterDto.Pressure) - sumDiffDepthByPressure += span[i].DepthEnd - span[i].DepthStart; + sumDiffDepthByPressure += diffDepth; if (span[i].IdFeedRegulator == LimitingParameterDto.AxialLoad) - sumDiffDepthByAxialLoad += span[i].DepthEnd - span[i].DepthStart; + sumDiffDepthByAxialLoad += diffDepth; if (span[i].IdFeedRegulator == LimitingParameterDto.RotorTorque) - sumDiffDepthByRotorTorque += span[i].DepthEnd - span[i].DepthStart; + sumDiffDepthByRotorTorque += diffDepth; if (span[i].IdFeedRegulator == LimitingParameterDto.RopPlan) - sumDiffDepthByRopPlan += span[i].DepthEnd - span[i].DepthStart; + sumDiffDepthByRopPlan += diffDepth; diffDepthTotal += diffDepth; drilledTime += (span[i].DateEnd - span[i].DateStart).TotalHours;