Fix progress logging when scale factor is large.

Tatsuo Ishii <ishii@postgresql.org>

Commit: 841a65482d6e198b71a0df987b8b9822608d5ef4
Author: Tatsuo Ishii <ishii@postgresql.org>
Date: 2013-12-12T10:10:35Z
Releases: 9.4.0
Fix progress logging when scale factor is large.

Integer overflow showed minus percent and minus remaining time something like this.
  239300000 of 3800000000 tuples (-48%) done (elapsed 226.86 s, remaining -696.10 s).

Files

PathChange+/−
contrib/pgbench/pgbench.c modified +4 −4