diff --git a/AsbCloudInfrastructure/Services/DataService.cs b/AsbCloudInfrastructure/Services/DataService.cs index dbddc192..db89a9c7 100644 --- a/AsbCloudInfrastructure/Services/DataService.cs +++ b/AsbCloudInfrastructure/Services/DataService.cs @@ -54,7 +54,8 @@ namespace AsbCloudInfrastructure.Services if (fullDataCount > 1.2 * approxPointsCount) { var m = approxPointsCount / fullDataCount; - fullData = fullData.Where(d => d.Id % m == 0); + if(m > 0) + fullData = fullData.Where(d => d.Id % m == 0); } var dbData = fullData.ToList();