From 5afc26f1d138fc5fd52b3c8bf4abfcd886249541 Mon Sep 17 00:00:00 2001 From: Brian Warner Date: Wed, 16 Apr 2008 16:29:53 -0700 Subject: [PATCH] misc/sizes.py: update to match current defaults: 128KiB segsize, 3-of-10 --- misc/sizes.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 -- 2.45.2