Commit d6161539 authored by Yoni Fogel's avatar Yoni Fogel

Addresses #2258 refs[t:2258] Windows port of min/max code (removed float equality test)

git-svn-id: file:///svn/toku/tokudb@16688 c7de825b-a66e-492c-adef-691d508d4ae1
parent 3cc23d68
......@@ -375,9 +375,9 @@ static void scanscan_range (void) {
// print the times
double tsum = 0.0, tmin = 0.0, tmax = 0.0;
for (counter=0; counter<n_experiments; counter++) {
if (tmin == 0.0 || texperiments[counter] < tmin)
if (counter==0 || texperiments[counter] < tmin)
tmin = texperiments[counter];
if (tmax == 0.0 || texperiments[counter] > tmax)
if (counter==0 || texperiments[counter] > tmax)
tmax = texperiments[counter];
tsum += texperiments[counter];
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment