Merge pull request 'fix/#drilling-quality-stat' (#337) from fix/#drilling-quality-stat into dev

Reviewed-on: http://test.digitaldrilling.ru:8080/DDrilling/AsbCloudServer/pulls/337
This commit is contained in:
Никита Фролов 2024-10-25 15:19:20 +05:00
commit dc7c126ee2

View File

@ -127,7 +127,7 @@ public class DataSaubStatDrillingQualityService : IDataSaubStatDrillingQualitySe
while (indexEnd < dataSaub.Count() - 1)
{
indexStart = Array.FindIndex(dataSaub, indexEnd, t => t.IdFeedRegulator == idFeedRegulator);
if (indexStart < 0)
if (indexStart < 0 || indexStart == dataSaub.Count() - 1)
break;
indexEnd = FindIndexEnd(indexStart, idFeedRegulator, dataSaub);