1
0
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:
John Baldwin 2002-06-07 15:32:05 +00:00
parent a1e85ec6fb
commit 2a0eb0b58c
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=98018
2 changed files with 2 additions and 2 deletions

View File

@ -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;

View File

@ -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;