1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-11-05 04:30:38 +03:00

In the ".scanstats on" output from the shell, round the estRows value to

the nearest integer, rather than rounding toward zero.

FossilOrigin-Name: 5700508535c35ac6b158b527e1d47e529e8e28ab
This commit is contained in:
drh
2014-11-07 13:52:44 +00:00
parent 86a11b8a6a
commit 9a06d30bb5
3 changed files with 8 additions and 8 deletions

View File

@@ -1222,7 +1222,7 @@ static void display_scanstats(
fprintf(pArg->out, "Loop %2d: %s\n", n, zExplain);
rEstLoop *= rEst;
fprintf(pArg->out, " nLoop=%-8lld nRow=%-8lld estRow=%-8lld estRow/Loop=%-8g\n",
nLoop, nVisit, (sqlite3_int64)rEstLoop, rEst
nLoop, nVisit, (sqlite3_int64)(rEstLoop+0.5), rEst
);
}
}