provisioning: require at least one drive per server
This commit is contained in:
parent
5561d3afe4
commit
2a48283e53
|
@ -557,8 +557,9 @@ class ProvisioningTool(rend.Page):
|
||||||
number(total_file_check_rate,
|
number(total_file_check_rate,
|
||||||
"Hz")])
|
"Hz")])
|
||||||
|
|
||||||
total_drives = mathutil.div_ceil(int(total_share_space),
|
total_drives = max(mathutil.div_ceil(int(total_share_space),
|
||||||
int(drive_size))
|
int(drive_size)),
|
||||||
|
num_servers)
|
||||||
add_output("Drives",
|
add_output("Drives",
|
||||||
T.div["Total drives: ", number(total_drives), " drives"])
|
T.div["Total drives: ", number(total_drives), " drives"])
|
||||||
drives_per_server = mathutil.div_ceil(total_drives, num_servers)
|
drives_per_server = mathutil.div_ceil(total_drives, num_servers)
|
||||||
|
|
Loading…
Reference in New Issue