aboutsummaryrefslogtreecommitdiff
path: root/src/shell.c
diff options
context:
space:
mode:
authordrh <drh@noemail.net>2014-11-07 13:52:44 +0000
committerdrh <drh@noemail.net>2014-11-07 13:52:44 +0000
commit9a06d30bb5266c008ad3a2493fecf5f65c36d56a (patch)
treebc2141f6ffbdbbd82eb2035a3e5d4ad9b18c36e9 /src/shell.c
parent86a11b8a6a671c1f0d55c7adb47994f2cec37f01 (diff)
downloadsqlite-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.c2
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
);
}
}