zstdmt : can compress at block granularity

offering perspective of more accurate progression report.
This commit is contained in:
Yann Collet
2018-01-13 13:18:57 -08:00
parent 863b2f8db4
commit 58ecf13e02
2 changed files with 67 additions and 36 deletions
+1 -1
View File
@@ -828,7 +828,7 @@ finish:
/* Status */
DISPLAYLEVEL(2, "\r%79s\r", "");
DISPLAYLEVEL(2,"%-20s :%6.2f%% (%6llu => %6llu bytes, %s) \n", srcFileName,
(double)compressedfilesize/(readsize+(!readsize) /* avoid div by zero */ )*100,
(double)compressedfilesize / (readsize+(!readsize)/*avoid div by zero*/) * 100,
(unsigned long long)readsize, (unsigned long long) compressedfilesize,
dstFileName);