summaryrefslogtreecommitdiff
path: root/contrib/pgbench/pgbench.c
diff options
context:
space:
mode:
authorStephen Frost <sfrost@snowman.net>2013-06-01 09:38:15 -0400
committerStephen Frost <sfrost@snowman.net>2013-06-01 09:38:15 -0400
commit551938ae2284975b53d665fa8a82a7e1f3514dda (patch)
tree14ceecfcc9413f1b3366393227b2604bf02e2bf1 /contrib/pgbench/pgbench.c
parentdedf7e9919a2dc42370c0b218728e1556985de6a (diff)
downloadpostgresql-551938ae2284975b53d665fa8a82a7e1f3514dda.tar.gz
Post-pgindent cleanup
Make slightly better decisions about indentation than what pgindent is capable of. Mostly breaking out long function calls into one line per argument, with a few other minor adjustments. No functional changes- all whitespace. pgindent ran cleanly (didn't change anything) after. Passes all regressions.
Diffstat (limited to 'contrib/pgbench/pgbench.c')
-rw-r--r--contrib/pgbench/pgbench.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/contrib/pgbench/pgbench.c b/contrib/pgbench/pgbench.c
index 8ff6623709..8c202bf870 100644
--- a/contrib/pgbench/pgbench.c
+++ b/contrib/pgbench/pgbench.c
@@ -999,8 +999,12 @@ top:
* this in a special way (see below).
*/
fprintf(logfile, "%ld %d %.0f %.0f %.0f %.0f\n",
- agg->start_time, agg->cnt, agg->sum, agg->sum2,
- agg->min_duration, agg->max_duration);
+ agg->start_time,
+ agg->cnt,
+ agg->sum,
+ agg->sum2,
+ agg->min_duration,
+ agg->max_duration);
/* move to the next inteval */
agg->start_time = agg->start_time + agg_interval;
@@ -1625,7 +1629,6 @@ init(bool is_no_vacuum)
/* have we reached the next interval (or end)? */
if ((j == scale * naccounts) || (elapsed_sec >= log_interval * LOG_STEP_SECONDS))
{
-
fprintf(stderr, INT64_FORMAT " of " INT64_FORMAT " tuples (%d%%) done (elapsed %.2f s, remaining %.2f s).\n",
j, (int64) naccounts * scale,
(int) (((int64) j * 100) / (naccounts * scale)), elapsed_sec, remaining_sec);