diff options
author | drh <drh@noemail.net> | 2014-11-07 13:52:44 +0000 |
---|---|---|
committer | drh <drh@noemail.net> | 2014-11-07 13:52:44 +0000 |
commit | 9a06d30bb5266c008ad3a2493fecf5f65c36d56a (patch) | |
tree | bc2141f6ffbdbbd82eb2035a3e5d4ad9b18c36e9 /src/shell.c | |
parent | 86a11b8a6a671c1f0d55c7adb47994f2cec37f01 (diff) | |
download | sqlite-9a06d30bb5266c008ad3a2493fecf5f65c36d56a.tar.gz sqlite-9a06d30bb5266c008ad3a2493fecf5f65c36d56a.zip |
In the ".scanstats on" output from the shell, round the estRows value to
the nearest integer, rather than rounding toward zero.
FossilOrigin-Name: 5700508535c35ac6b158b527e1d47e529e8e28ab
Diffstat (limited to 'src/shell.c')
-rw-r--r-- | src/shell.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/shell.c b/src/shell.c index 915b69263..a33e65b1f 100644 --- a/src/shell.c +++ b/src/shell.c @@ -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 ); } } |