aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--contrib/pgbench/pgbench.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/pgbench/pgbench.c b/contrib/pgbench/pgbench.c
index 5d48aeeae47..090c21019e6 100644
--- a/contrib/pgbench/pgbench.c
+++ b/contrib/pgbench/pgbench.c
@@ -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"))
{