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