mirror of
https://github.com/facebook/zstd.git
synced 2025-08-01 09:47:01 +03:00
Convert names to CamelCase
This commit is contained in:
committed by
W. Felix Handte
parent
b70175e5ec
commit
b6b23dfe64
@ -1598,16 +1598,16 @@ 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 input_size_str[8] = "";
|
char inputSizeStr[8] = "";
|
||||||
human_size((unsigned long long) readsize, input_size_str);
|
humanSize((unsigned long long) readsize, inputSizeStr);
|
||||||
|
|
||||||
char output_size_str[8] = "";
|
char outputSizeStr[8] = "";
|
||||||
human_size((unsigned long long) compressedfilesize, output_size_str);
|
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,
|
||||||
(double)compressedfilesize / (double)readsize * 100,
|
(double)compressedfilesize / (double)readsize * 100,
|
||||||
input_size_str, output_size_str,
|
inputSizeStr, outputSizeStr,
|
||||||
dstFileName);
|
dstFileName);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -121,7 +121,7 @@ int UTIL_requireUserConfirmation(const char* prompt, const char* abortMsg,
|
|||||||
* Functions
|
* Functions
|
||||||
***************************************/
|
***************************************/
|
||||||
|
|
||||||
char* human_size(long size, char* str) {
|
char* humanSize(long size, char* str) {
|
||||||
if (size > 1125899906842624L) {
|
if (size > 1125899906842624L) {
|
||||||
snprintf(str, 7, "%.1fP", (float)size / 1125899906842624L);
|
snprintf(str, 7, "%.1fP", (float)size / 1125899906842624L);
|
||||||
} else if (size > 1099511627776L) {
|
} else if (size > 1099511627776L) {
|
||||||
|
@ -122,7 +122,7 @@ int UTIL_requireUserConfirmation(const char* prompt, const char* abortMsg, const
|
|||||||
#define STRDUP(s) strdup(s)
|
#define STRDUP(s) strdup(s)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
char* human_size(long size, char* str);
|
char* humanSize(long size, char* str);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Calls platform's equivalent of stat() on filename and writes info to statbuf.
|
* Calls platform's equivalent of stat() on filename and writes info to statbuf.
|
||||||
|
Reference in New Issue
Block a user