Skip to content

Commit

Permalink
fix: wip
Browse files Browse the repository at this point in the history
  • Loading branch information
acha-bill committed Mar 6, 2024
1 parent cf285cd commit 08fd971
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions pkg/check/redundancy/redundancy.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 08fd971

Please sign in to comment.