forked from ddrilling/AsbCloudServer
CS2-15: Исправлено прореживание больших возвращаемых данных о скважинах
This commit is contained in:
parent
de0be337d6
commit
b21fe640e0
@ -51,9 +51,9 @@ namespace AsbCloudInfrastructure.Services
|
||||
if (fullDataCount == 0)
|
||||
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)
|
||||
fullData = fullData.Where(d => d.Id % m == 0);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user