From 08fd9719572b1b6e2c39245d6e56e99100c0a4cb Mon Sep 17 00:00:00 2001 From: Acha Bill Date: Wed, 6 Mar 2024 23:53:11 +0100 Subject: [PATCH] fix: wip --- pkg/check/redundancy/redundancy.go | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/pkg/check/redundancy/redundancy.go b/pkg/check/redundancy/redundancy.go index 9fc10322e..9778b346c 100644 --- a/pkg/check/redundancy/redundancy.go +++ b/pkg/check/redundancy/redundancy.go @@ -159,15 +159,16 @@ func (c *Check) uploadChunks(ctx context.Context, client *bee.Client, chunks []s } else { switch rLevel { case redundancy.MEDIUM: - rate = 0.1 + rate = 0.2 case redundancy.STRONG: - rate = 0.15 + rate = 0.25 case redundancy.INSANE: - rate = 0.2 + rate = 0.35 case redundancy.PARANOID: - rate = 0.6 + rate = 0.7 } } + c.logger.Infof("lossing %f%% of chunks", rate*100) rnd := random.PseudoGenerator(time.Now().UnixNano()) indices := rnd.Perm(len(chunks) - 1)