Move the variable declarations to the top
This commit is contained in:
committed by
W. Felix Handte
parent
eefdbcd93a
commit
4e0d9f1cc8
+3
-3
@@ -1544,6 +1544,9 @@ 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 outputSizeStr[8] = "";
|
||||||
|
|
||||||
DISPLAYLEVEL(5, "%s: %llu bytes \n", srcFileName, (unsigned long long)fileSize);
|
DISPLAYLEVEL(5, "%s: %llu bytes \n", srcFileName, (unsigned long long)fileSize);
|
||||||
|
|
||||||
/* compression format selection */
|
/* compression format selection */
|
||||||
@@ -1598,10 +1601,7 @@ 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 {
|
||||||
char inputSizeStr[8] = "";
|
|
||||||
humanSize((unsigned long long) readsize, inputSizeStr);
|
humanSize((unsigned long long) readsize, inputSizeStr);
|
||||||
|
|
||||||
char outputSizeStr[8] = "";
|
|
||||||
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",
|
||||||
|
|||||||
Reference in New Issue
Block a user