This commit is contained in:
jl777
2019-04-02 05:10:45 -11:00
parent 88eee07c7f
commit fcea5524d7

View File

@@ -2298,7 +2298,7 @@ int64_t komodo_pricecorrelated(uint64_t seed,int32_t ind,uint32_t *rawprices,int
den += (daywindow - i);
sum += (daywindow - i) * ((price + firstprice) >> 1);
n++;
} else return(-1);
}
}
if ( n != correlation || sum == 0 || den == 0 )
{