mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-24 11:29:10 +00:00
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
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=98018
@ -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