Skip to content

Commit

Permalink
fix mb -> b maths error
Browse files Browse the repository at this point in the history
  • Loading branch information
metalsp0rk committed Jul 29, 2020
1 parent bfadf8b commit 74d19cf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cmd/restic/cmd_init.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ func runInit(gopts GlobalOptions, args []string) error {
return err
}

s := repository.New(be, gopts.MinPackSize)
s := repository.New(be, gopts.MinPackSize*1024*1024)

err = s.Init(gopts.ctx, gopts.password)
if err != nil {
Expand Down
2 changes: 1 addition & 1 deletion internal/checker/checker_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,7 @@ func TestCheckerModifiedData(t *testing.T) {
t.Logf("archived as %v", sn.ID().Str())

beError := &errorBackend{Backend: repo.Backend()}
checkRepo := repository.New(beError, 4)
checkRepo := repository.New(beError, 4*1024*1024)
test.OK(t, checkRepo.SearchKey(context.TODO(), test.TestPassword, 5, ""))

chkr := checker.New(checkRepo)
Expand Down

0 comments on commit 74d19cf

Please sign in to comment.