forked from ddrilling/AsbCloudServer
fix devision by zero exception
This commit is contained in:
parent
20862228a6
commit
3d3fe0288e
@ -54,6 +54,7 @@ namespace AsbCloudInfrastructure.Services
|
||||
if (fullDataCount > 1.2 * approxPointsCount)
|
||||
{
|
||||
var m = approxPointsCount / fullDataCount;
|
||||
if(m > 0)
|
||||
fullData = fullData.Where(d => d.Id % m == 0);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user