Convert tabs to spaces
This commit is contained in:
committed by
W. Felix Handte
parent
77001f00fb
commit
35576e63ce
@@ -388,8 +388,8 @@ BMK_benchMemAdvancedNoAlloc(
|
|||||||
# define NB_MARKS 4
|
# define NB_MARKS 4
|
||||||
const char* marks[NB_MARKS] = { " |", " /", " =", " \\" };
|
const char* marks[NB_MARKS] = { " |", " /", " =", " \\" };
|
||||||
U32 markNb = 0;
|
U32 markNb = 0;
|
||||||
char inputSizeStr[8] = "";
|
char inputSizeStr[8] = "";
|
||||||
char outputSizeStr[8] = "";
|
char outputSizeStr[8] = "";
|
||||||
int compressionCompleted = (adv->mode == BMK_decodeOnly);
|
int compressionCompleted = (adv->mode == BMK_decodeOnly);
|
||||||
int decompressionCompleted = (adv->mode == BMK_compressOnly);
|
int decompressionCompleted = (adv->mode == BMK_compressOnly);
|
||||||
BMK_benchParams_t cbp, dbp;
|
BMK_benchParams_t cbp, dbp;
|
||||||
@@ -431,7 +431,7 @@ BMK_benchMemAdvancedNoAlloc(
|
|||||||
dctxprep.dictBuffer = dictBuffer;
|
dctxprep.dictBuffer = dictBuffer;
|
||||||
dctxprep.dictBufferSize = dictBufferSize;
|
dctxprep.dictBufferSize = dictBufferSize;
|
||||||
|
|
||||||
humanSize((unsigned)srcSize, inputSizeStr);
|
humanSize((unsigned)srcSize, inputSizeStr);
|
||||||
|
|
||||||
DISPLAYLEVEL(2, "\r%70s\r", ""); /* blank line */
|
DISPLAYLEVEL(2, "\r%70s\r", ""); /* blank line */
|
||||||
DISPLAYLEVEL(2, "%2s-%-17.17s : %s -> \r", marks[markNb], displayName, inputSizeStr);
|
DISPLAYLEVEL(2, "%2s-%-17.17s : %s -> \r", marks[markNb], displayName, inputSizeStr);
|
||||||
@@ -456,8 +456,8 @@ BMK_benchMemAdvancedNoAlloc(
|
|||||||
|
|
||||||
{ int const ratioAccuracy = (ratio < 10.) ? 3 : 2;
|
{ int const ratioAccuracy = (ratio < 10.) ? 3 : 2;
|
||||||
|
|
||||||
humanSize((unsigned)srcSize, inputSizeStr);
|
humanSize((unsigned)srcSize, inputSizeStr);
|
||||||
humanSize((unsigned)cSize, outputSizeStr);
|
humanSize((unsigned)cSize, outputSizeStr);
|
||||||
|
|
||||||
DISPLAYLEVEL(2, "%2s-%-17.17s : %s -> %s (%5.*f),%6.*f MB/s\r",
|
DISPLAYLEVEL(2, "%2s-%-17.17s : %s -> %s (%5.*f),%6.*f MB/s\r",
|
||||||
marks[markNb], displayName,
|
marks[markNb], displayName,
|
||||||
@@ -483,8 +483,8 @@ BMK_benchMemAdvancedNoAlloc(
|
|||||||
|
|
||||||
{ int const ratioAccuracy = (ratio < 10.) ? 3 : 2;
|
{ int const ratioAccuracy = (ratio < 10.) ? 3 : 2;
|
||||||
|
|
||||||
humanSize((unsigned)srcSize, inputSizeStr);
|
humanSize((unsigned)srcSize, inputSizeStr);
|
||||||
humanSize((unsigned)cSize, outputSizeStr);
|
humanSize((unsigned)cSize, outputSizeStr);
|
||||||
|
|
||||||
DISPLAYLEVEL(2, "%2s-%-17.17s : %s -> %s (%5.*f),%6.*f MB/s ,%6.1f MB/s \r",
|
DISPLAYLEVEL(2, "%2s-%-17.17s : %s -> %s (%5.*f),%6.*f MB/s ,%6.1f MB/s \r",
|
||||||
marks[markNb], displayName,
|
marks[markNb], displayName,
|
||||||
|
|||||||
+8
-8
@@ -1544,8 +1544,8 @@ FIO_compressFilename_internal(FIO_ctx_t* const fCtx,
|
|||||||
U64 readsize = 0;
|
U64 readsize = 0;
|
||||||
U64 compressedfilesize = 0;
|
U64 compressedfilesize = 0;
|
||||||
U64 const fileSize = UTIL_getFileSize(srcFileName);
|
U64 const fileSize = UTIL_getFileSize(srcFileName);
|
||||||
char inputSizeStr[8] = "";
|
char inputSizeStr[8] = "";
|
||||||
char outputSizeStr[8] = "";
|
char outputSizeStr[8] = "";
|
||||||
|
|
||||||
DISPLAYLEVEL(5, "%s: %llu bytes \n", srcFileName, (unsigned long long)fileSize);
|
DISPLAYLEVEL(5, "%s: %llu bytes \n", srcFileName, (unsigned long long)fileSize);
|
||||||
|
|
||||||
@@ -1601,8 +1601,8 @@ FIO_compressFilename_internal(FIO_ctx_t* const fCtx,
|
|||||||
(unsigned long long)readsize, (unsigned long long) compressedfilesize,
|
(unsigned long long)readsize, (unsigned long long) compressedfilesize,
|
||||||
dstFileName);
|
dstFileName);
|
||||||
} else {
|
} else {
|
||||||
humanSize((unsigned long long) readsize, inputSizeStr);
|
humanSize((unsigned long long) readsize, inputSizeStr);
|
||||||
humanSize((unsigned long long) compressedfilesize, outputSizeStr);
|
humanSize((unsigned long long) compressedfilesize, outputSizeStr);
|
||||||
|
|
||||||
DISPLAYLEVEL(2,"%-20s :%6.2f%% (%s => %s, %s) \n",
|
DISPLAYLEVEL(2,"%-20s :%6.2f%% (%s => %s, %s) \n",
|
||||||
srcFileName,
|
srcFileName,
|
||||||
@@ -1841,8 +1841,8 @@ int FIO_compressMultipleFilenames(FIO_ctx_t* const fCtx,
|
|||||||
{
|
{
|
||||||
int status;
|
int status;
|
||||||
int error = 0;
|
int error = 0;
|
||||||
char inputSizeStr[8] = "";
|
char inputSizeStr[8] = "";
|
||||||
char outputSizeStr[8] = "";
|
char outputSizeStr[8] = "";
|
||||||
cRess_t ress = FIO_createCResources(prefs, dictFileName,
|
cRess_t ress = FIO_createCResources(prefs, dictFileName,
|
||||||
FIO_getLargestFileSize(inFileNamesTable, (unsigned)fCtx->nbFilesTotal),
|
FIO_getLargestFileSize(inFileNamesTable, (unsigned)fCtx->nbFilesTotal),
|
||||||
compressionLevel, comprParams);
|
compressionLevel, comprParams);
|
||||||
@@ -1898,8 +1898,8 @@ int FIO_compressMultipleFilenames(FIO_ctx_t* const fCtx,
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (fCtx->nbFilesProcessed >= 1 && fCtx->nbFilesTotal > 1 && fCtx->totalBytesInput != 0) {
|
if (fCtx->nbFilesProcessed >= 1 && fCtx->nbFilesTotal > 1 && fCtx->totalBytesInput != 0) {
|
||||||
humanSize((unsigned long long) fCtx->totalBytesInput, inputSizeStr);
|
humanSize((unsigned long long) fCtx->totalBytesInput, inputSizeStr);
|
||||||
humanSize((unsigned long long) fCtx->totalBytesOutput, outputSizeStr);
|
humanSize((unsigned long long) fCtx->totalBytesOutput, outputSizeStr);
|
||||||
|
|
||||||
DISPLAYLEVEL(2, "\r%79s\r", "");
|
DISPLAYLEVEL(2, "\r%79s\r", "");
|
||||||
DISPLAYLEVEL(2, "%3d files compressed : %.2f%% (%s => %s bytes)\n", fCtx->nbFilesProcessed,
|
DISPLAYLEVEL(2, "%3d files compressed : %.2f%% (%s => %s bytes)\n", fCtx->nbFilesProcessed,
|
||||||
|
|||||||
Reference in New Issue
Block a user