diff options
author | Peter Eisentraut | 2019-05-28 12:26:24 +0000 |
---|---|---|
committer | Peter Eisentraut | 2019-05-28 12:26:24 +0000 |
commit | a94fd139df975a006d1697d2a7180d3656222d4d (patch) | |
tree | 13e665363e31d4608bed4ca213cef2e3ffc501e0 | |
parent | 3ceaed106d95e76c7dbfd41f5d83a163fd0d25c8 (diff) |
Fix comment
This code block was copied/adapted from other similar places but
somehow the comment placement was changed so that it makes less sense.
-rw-r--r-- | src/bin/pg_checksums/pg_checksums.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/bin/pg_checksums/pg_checksums.c b/src/bin/pg_checksums/pg_checksums.c index 37fe20bb75..16cf52a340 100644 --- a/src/bin/pg_checksums/pg_checksums.c +++ b/src/bin/pg_checksums/pg_checksums.c @@ -136,16 +136,16 @@ progress_report(bool force) /* Calculate current percentage of size done */ percent = total_size ? (int) ((current_size) * 100 / total_size) : 0; - snprintf(total_size_str, sizeof(total_size_str), INT64_FORMAT, - total_size / (1024 * 1024)); - snprintf(current_size_str, sizeof(current_size_str), INT64_FORMAT, - current_size / (1024 * 1024)); - /* * Separate step to keep platform-dependent format code out of * translatable strings. And we only test for INT64_FORMAT availability * in snprintf, not fprintf. */ + snprintf(total_size_str, sizeof(total_size_str), INT64_FORMAT, + total_size / (1024 * 1024)); + snprintf(current_size_str, sizeof(current_size_str), INT64_FORMAT, + current_size / (1024 * 1024)); + fprintf(stderr, "%*s/%s MB (%d%%) computed", (int) strlen(current_size_str), current_size_str, total_size_str, percent); |