mirror of
https://git.postgresql.org/git/postgresql.git
synced 2025-03-07 19:47:50 +08:00
Prevent overflow in pgbench's percent-done display.
Per Thom Brown.
This commit is contained in:
parent
5d1abe64e6
commit
ca0b960eb5
@ -1444,7 +1444,7 @@ init(bool is_no_vacuum)
|
||||
if (j % 100000 == 0)
|
||||
fprintf(stderr, "%d of %d tuples (%d%%) done.\n",
|
||||
j, naccounts * scale,
|
||||
j * 100 / (naccounts * scale));
|
||||
(int) (((int64) j * 100) / (naccounts * scale)));
|
||||
}
|
||||
if (PQputline(con, "\\.\n"))
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user