diff --git a/AsbCloudInfrastructure/Services/DataService.cs b/AsbCloudInfrastructure/Services/DataService.cs index d8c92c42..9a066f90 100644 --- a/AsbCloudInfrastructure/Services/DataService.cs +++ b/AsbCloudInfrastructure/Services/DataService.cs @@ -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); }