File tree 1 file changed +5
-5
lines changed
1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -136,16 +136,16 @@ progress_report(bool force)
136
136
/* Calculate current percentage of size done */
137
137
percent = total_size ? (int ) ((current_size ) * 100 / total_size ) : 0 ;
138
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
139
/*
145
140
* Separate step to keep platform-dependent format code out of
146
141
* translatable strings. And we only test for INT64_FORMAT availability
147
142
* in snprintf, not fprintf.
148
143
*/
144
+ snprintf (total_size_str , sizeof (total_size_str ), INT64_FORMAT ,
145
+ total_size / (1024 * 1024 ));
146
+ snprintf (current_size_str , sizeof (current_size_str ), INT64_FORMAT ,
147
+ current_size / (1024 * 1024 ));
148
+
149
149
fprintf (stderr , "%*s/%s MB (%d%%) computed" ,
150
150
(int ) strlen (current_size_str ), current_size_str , total_size_str ,
151
151
percent );
You can’t perform that action at this time.
0 commit comments