From b21fe640e0557add4cdf3763007fa54d40b7594a Mon Sep 17 00:00:00 2001 From: KharchenkoVV Date: Fri, 28 May 2021 11:25:07 +0500 Subject: [PATCH] =?UTF-8?q?CS2-15:=20=D0=98=D1=81=D0=BF=D1=80=D0=B0=D0=B2?= =?UTF-8?q?=D0=BB=D0=B5=D0=BD=D0=BE=20=D0=BF=D1=80=D0=BE=D1=80=D0=B5=D0=B6?= =?UTF-8?q?=D0=B8=D0=B2=D0=B0=D0=BD=D0=B8=D0=B5=20=D0=B1=D0=BE=D0=BB=D1=8C?= =?UTF-8?q?=D1=88=D0=B8=D1=85=20=D0=B2=D0=BE=D0=B7=D0=B2=D1=80=D0=B0=D1=89?= =?UTF-8?q?=D0=B0=D0=B5=D0=BC=D1=8B=D1=85=20=D0=B4=D0=B0=D0=BD=D0=BD=D1=8B?= =?UTF-8?q?=D1=85=20=D0=BE=20=D1=81=D0=BA=D0=B2=D0=B0=D0=B6=D0=B8=D0=BD?= =?UTF-8?q?=D0=B0=D1=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- AsbCloudInfrastructure/Services/DataService.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); }