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;