mirror of
https://github.com/nosqlbench/nosqlbench.git
synced 2025-02-25 18:55:28 -06:00
additional NaN safety
This commit is contained in:
parent
c579ca38cd
commit
e30054c63f
@ -118,6 +118,9 @@ public class StabilityDetector implements Runnable {
|
||||
// if previous bigger window had a higher stddev than the one after, then it is converging
|
||||
double reductionFactor = (stddev[i + 1] / stddev[i]);
|
||||
basis *= reductionFactor;
|
||||
if (Double.isNaN(basis)) {
|
||||
throw new RuntimeException("basis is NaN");
|
||||
}
|
||||
}
|
||||
|
||||
// TODO: investigate why we get NaN sometimes and what it means for stability checks
|
||||
|
Loading…
Reference in New Issue
Block a user