Skip to content

Commit

Permalink
s2sx: Fix max size error (#399)
Browse files Browse the repository at this point in the history
Fixes `ERROR: max size less than unpacker. Max size must be at least 2170369 bytes`.

Use `s2sx -max=1024MB` as a workaround.
  • Loading branch information
klauspost committed Jun 15, 2021
1 parent d1ca57f commit 5fa6c07
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion s2/cmd/_s2sx/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@ func toSize(size string) (int64, error) {

switch multiple {
case "G", "GB", "GIB":
return bytes * 1 << 20, nil
return bytes * 1 << 30, nil
case "M", "MB", "MIB":
return bytes * 1 << 20, nil
case "K", "KB", "KIB":
Expand Down

0 comments on commit 5fa6c07

Please sign in to comment.