CS2-15: Исправлено прореживание больших возвращаемых данных о скважинах

This commit is contained in:
KharchenkoVV 2021-05-28 11:25:07 +05:00
parent de0be337d6
commit b21fe640e0

View File

@ -51,9 +51,9 @@ namespace AsbCloudInfrastructure.Services
if (fullDataCount == 0) if (fullDataCount == 0)
return default; return default;
if (fullDataCount > 1.2 * approxPointsCount) if (fullDataCount > 1.75 * approxPointsCount)
{ {
var m = approxPointsCount / fullDataCount; var m = (int)Math.Round(1d*fullDataCount / approxPointsCount);
if(m > 1) if(m > 1)
fullData = fullData.Where(d => d.Id % m == 0); fullData = fullData.Where(d => d.Id % m == 0);
} }