Commit 83bcc704 authored by Bruce Momjian's avatar Bruce Momjian

pgbench: remove odd trailing period in init progress output

parent 3b6ca123
...@@ -2013,7 +2013,7 @@ init(bool is_no_vacuum) ...@@ -2013,7 +2013,7 @@ init(bool is_no_vacuum)
elapsed_sec = INSTR_TIME_GET_DOUBLE(diff); elapsed_sec = INSTR_TIME_GET_DOUBLE(diff);
remaining_sec = ((double) scale * naccounts - j) * elapsed_sec / j; remaining_sec = ((double) scale * naccounts - j) * elapsed_sec / j;
fprintf(stderr, INT64_FORMAT " of " INT64_FORMAT " tuples (%d%%) done (elapsed %.2f s, remaining %.2f s).\n", fprintf(stderr, INT64_FORMAT " of " INT64_FORMAT " tuples (%d%%) done (elapsed %.2f s, remaining %.2f s)\n",
j, (int64) naccounts * scale, j, (int64) naccounts * scale,
(int) (((int64) j * 100) / (naccounts * (int64) scale)), (int) (((int64) j * 100) / (naccounts * (int64) scale)),
elapsed_sec, remaining_sec); elapsed_sec, remaining_sec);
...@@ -2030,7 +2030,7 @@ init(bool is_no_vacuum) ...@@ -2030,7 +2030,7 @@ init(bool is_no_vacuum)
/* have we reached the next interval (or end)? */ /* have we reached the next interval (or end)? */
if ((j == scale * naccounts) || (elapsed_sec >= log_interval * LOG_STEP_SECONDS)) 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", fprintf(stderr, INT64_FORMAT " of " INT64_FORMAT " tuples (%d%%) done (elapsed %.2f s, remaining %.2f s)\n",
j, (int64) naccounts * scale, j, (int64) naccounts * scale,
(int) (((int64) j * 100) / (naccounts * (int64) scale)), elapsed_sec, remaining_sec); (int) (((int64) j * 100) / (naccounts * (int64) scale)), elapsed_sec, remaining_sec);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment