provisioning: require at least one drive per server

This commit is contained in:
Brian Warner 2007-09-06 23:08:21 -07:00
parent 5561d3afe4
commit 2a48283e53
1 changed files with 3 additions and 2 deletions

View File

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