We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see ourdocumentation.
There was an error while loading.Please reload this page.
1 parent3ceaed1 commita94fd13Copy full SHA for a94fd13
src/bin/pg_checksums/pg_checksums.c
@@ -136,16 +136,16 @@ progress_report(bool force)
136
/* Calculate current percentage of size done */
137
percent=total_size ? (int) ((current_size)*100 /total_size) :0;
138
139
-snprintf(total_size_str,sizeof(total_size_str),INT64_FORMAT,
140
-total_size / (1024*1024));
141
-snprintf(current_size_str,sizeof(current_size_str),INT64_FORMAT,
142
-current_size / (1024*1024));
143
-
144
/*
145
* Separate step to keep platform-dependent format code out of
146
* translatable strings. And we only test for INT64_FORMAT availability
147
* in snprintf, not fprintf.
148
*/
+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));
+
149
fprintf(stderr,"%*s/%s MB (%d%%) computed",
150
(int)strlen(current_size_str),current_size_str,total_size_str,
151
percent);