Fix the logic in printing final status updates

dev
senhuang42 2020-09-01 12:46:06 -04:00
parent a6414f1247
commit a03917c751
1 changed files with 4 additions and 2 deletions

View File

@ -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;
}
}