mirror of
https://github.com/facebook/zstd.git
synced 2026-01-06 11:21:19 +03:00
Fix the logic in printing final status updates
This commit is contained in:
@@ -1508,7 +1508,8 @@ FIO_compressFilename_internal(FIO_prefs_t* const prefs,
|
||||
(unsigned long long)readsize, (unsigned long long) compressedfilesize,
|
||||
dstFileName);
|
||||
}
|
||||
} else if (fCtx->nbFilesTotal > 1) {
|
||||
}
|
||||
if (fCtx->nbFilesTotal > 1) {
|
||||
fCtx->totalBytesInput += (size_t)readsize;
|
||||
fCtx->totalBytesOutput += (size_t)compressedfilesize;
|
||||
}
|
||||
@@ -2418,7 +2419,8 @@ static int FIO_decompressFrames(dRess_t ress, FILE* srcFile,
|
||||
if (g_display_prefs.displayLevel >= 2) {
|
||||
if (fCtx->nbFilesTotal <= 1 || g_display_prefs.displayLevel >= 3) {
|
||||
DISPLAYLEVEL(2, "%-20s: %llu bytes \n", srcFileName, filesize);
|
||||
} else if (fCtx->nbFilesTotal > 1) {
|
||||
}
|
||||
if (fCtx->nbFilesTotal > 1) {
|
||||
fCtx->totalBytesOutput += filesize;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user