Improve CopySingle 'progress' indicator.

This commit is contained in:
TomAwezome 2022-10-20 14:35:27 -04:00
parent da01da14eb
commit 2cb7e9f7a0

View file

@ -57,7 +57,7 @@ Bool CopySingle(U8 *f1, U8 *f2) //Just one file
out_file = FOpen(f2, "w", count); out_file = FOpen(f2, "w", count);
if (out_file) if (out_file)
{ {
"Copying %s to %s ", f1, f2; "Copying %s to %s", f1, f2;
j = size; j = size;
while (count > 0) while (count > 0)
{ {
@ -65,7 +65,8 @@ Bool CopySingle(U8 *f1, U8 *f2) //Just one file
{ {
n = COPY_BUF_BLKS; n = COPY_BUF_BLKS;
i = n << BLK_SIZE_BITS; i = n << BLK_SIZE_BITS;
"."; if (size)
"\n [ %0.2f%% ]", 100 * ToF64(size - j) / size;
} }
else else
{ {