Fix progress logging when scale factor is large.

Tatsuo Ishii <ishii@postgresql.org>

Commit: 27902bc9164d227cbdf1242de218edeaf8cd9f7f
Author: Tatsuo Ishii <ishii@postgresql.org>
Date: 2013-12-12T10:07:53Z
Releases: 9.3.3
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