mirror of https://gitee.com/bigwinds/arangodb
Fix selectivity estimate by casting to double before division.
This commit is contained in:
parent
79ce6eb93b
commit
8ae33e04e7
|
@ -805,7 +805,8 @@ namespace triagens {
|
||||||
nrCollisions += b._nrCollisions;
|
nrCollisions += b._nrCollisions;
|
||||||
}
|
}
|
||||||
return nrUsed > 0 ?
|
return nrUsed > 0 ?
|
||||||
(nrUsed - nrCollisions) / nrUsed :
|
static_cast<double>(nrUsed - nrCollisions)
|
||||||
|
/ static_cast<double>(nrUsed) :
|
||||||
1.0;
|
1.0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue