Fix a bug where request_part_size() was hard-coded to check the rootSize
variable rather than the one passed in as the first argument. Sponsored by: The Weather Channel
This commit is contained in:
parent
a1e85ec6fb
commit
2a0eb0b58c
@ -1155,7 +1155,7 @@ requested_part_size(char *varName, int nom, int def, int perc)
|
||||
char *cp;
|
||||
int sz;
|
||||
|
||||
if ((cp = variable_get(VAR_ROOT_SIZE)) != NULL)
|
||||
if ((cp = variable_get(varName)) != NULL)
|
||||
sz = atoi(cp);
|
||||
else
|
||||
sz = nom + (def - nom) * perc / 100;
|
||||
|
@ -1155,7 +1155,7 @@ requested_part_size(char *varName, int nom, int def, int perc)
|
||||
char *cp;
|
||||
int sz;
|
||||
|
||||
if ((cp = variable_get(VAR_ROOT_SIZE)) != NULL)
|
||||
if ((cp = variable_get(varName)) != NULL)
|
||||
sz = atoi(cp);
|
||||
else
|
||||
sz = nom + (def - nom) * perc / 100;
|
||||
|
Loading…
Reference in New Issue
Block a user