mirror of
https://github.com/ckolivas/lrzip.git
synced 2026-04-05 14:25:42 +00:00
Change the LZO testing option to be a bool on/off instead of taking a confusing parameter.
Make the lzo testing message simpler and only appear when max verbose mode is enabled.
This commit is contained in:
parent
fa34905d9d
commit
94673d3fe3
9 changed files with 37 additions and 75 deletions
7
util.c
7
util.c
|
|
@ -172,10 +172,9 @@ void read_config( struct rzip_control *control )
|
|||
else if (strcasecmp(parametervalue, "lzma"))
|
||||
failure("CONF.FILE error. Invalid compression method %s specified",parametervalue);
|
||||
} else if (!strcasecmp(parameter, "testthreshold")) {
|
||||
control->threshold = atoi(parametervalue);
|
||||
if (control->threshold < 1 || control->threshold > 10)
|
||||
failure("CONF.FILE error. Threshold value out of range %d", parametervalue);
|
||||
control->threshold = 1.05-control->threshold / 20;
|
||||
/* true by default */
|
||||
if (!strcasecmp(parametervalue, "false") || !strcasecmp(parametervalue," 0"))
|
||||
control->flags &= ~FLAG_THRESHOLD;
|
||||
} else if (!strcasecmp(parameter, "outputdirectory")) {
|
||||
control->outdir = malloc(strlen(parametervalue) + 2);
|
||||
if (!control->outdir)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue