Skip to content

Commit 7863327

Browse files
authored
Merge pull request #2982 from terrelln/decompress-progress-0
Fix stderr progress logging for decompression
2 parents 5f2c3d9 + 308a11b commit 7863327

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

programs/fileio.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2245,7 +2245,7 @@ FIO_decompressZstdFrame(FIO_ctx_t* const fCtx, dRess_t* ress, FILE* finput,
22452245
ZSTD_inBuffer inBuff = { ress->srcBuffer, ress->srcBufferLoaded, 0 };
22462246
ZSTD_outBuffer outBuff= { ress->dstBuffer, ress->dstBufferSize, 0 };
22472247
size_t const readSizeHint = ZSTD_decompressStream(ress->dctx, &outBuff, &inBuff);
2248-
const int displayLevel = (!fCtx->hasStdoutOutput || g_display_prefs.progressSetting == FIO_ps_always) ? 1 : 2;
2248+
const int displayLevel = (g_display_prefs.progressSetting == FIO_ps_always) ? 1 : 2;
22492249
UTIL_HumanReadableSize_t const hrs = UTIL_makeHumanReadableSize(alreadyDecoded+frameSize);
22502250
if (ZSTD_isError(readSizeHint)) {
22512251
DISPLAYLEVEL(1, "%s : Decoding error (36) : %s \n",

0 commit comments

Comments
 (0)