1
0
mirror of https://github.com/facebook/zstd.git synced 2026-01-06 11:21:19 +03:00

removed direct assignment of 22, used ZSTD_maxCLevel() instead

This commit is contained in:
Paul Cruz
2017-08-07 13:11:07 -07:00
parent 0295737ad7
commit e100a311eb

View File

@@ -43,7 +43,7 @@ static unsigned g_useProgressBar = 1;
static UTIL_freq_t g_ticksPerSecond;
static unsigned g_forceCompressionLevel = 0;
static unsigned g_minCLevel = 1;
static unsigned g_maxCLevel = 22;
static unsigned g_maxCLevel;
typedef struct {
void* start;
@@ -993,7 +993,7 @@ static void help(void)
PRINT(" -p : hide progress bar\n");
PRINT(" -q : quiet mode -- do not show progress bar or other information\n");
PRINT(" -l# : provide lower bound for compression level -- default 1\n");
PRINT(" -u# : provide upper bound for compression level -- default 22\n");
PRINT(" -u# : provide upper bound for compression level -- default %u\n", ZSTD_maxCLevel());
}
/* return 0 if successful, else return error */
int main(int argCount, const char* argv[])
@@ -1006,6 +1006,7 @@ int main(int argCount, const char* argv[])
int ret = 0;
int argNum;
filenameTable[0] = stdinmark;
g_maxCLevel = ZSTD_maxCLevel();
UTIL_initTimer(&g_ticksPerSecond);