From: Brian Warner Date: Wed, 16 Apr 2008 23:29:53 +0000 (-0700) Subject: misc/sizes.py: update to match current defaults: 128KiB segsize, 3-of-10 X-Git-Tag: allmydata-tahoe-1.1.0~239 X-Git-Url: https://git.rkrishnan.org/specifications/something?a=commitdiff_plain;h=5afc26f1d138fc5fd52b3c8bf4abfcd886249541;p=tahoe-lafs%2Ftahoe-lafs.git misc/sizes.py: update to match current defaults: 128KiB segsize, 3-of-10 --- diff --git a/misc/sizes.py b/misc/sizes.py index a101538f..b55d9491 100644 --- a/misc/sizes.py +++ b/misc/sizes.py @@ -37,15 +37,15 @@ PiB=1024*TiB class Sizes: def __init__(self, mode, file_size, arity=2): - MAX_SEGSIZE = 2*MiB + MAX_SEGSIZE = 128*KiB self.mode = mode self.file_size = file_size self.seg_size = seg_size = 1.0 * min(MAX_SEGSIZE, file_size) self.num_segs = num_segs = math.ceil(file_size / seg_size) self.num_blocks = num_blocks = num_segs - self.num_shares = num_shares = 100 - self.shares_needed = shares_needed = 25 + self.num_shares = num_shares = 10 + self.shares_needed = shares_needed = 3 self.block_size = block_size = seg_size / shares_needed self.share_size = share_size = block_size * num_blocks