From a4dedf204a4a19c72824dcf62d5e764ba5eb1bb3 Mon Sep 17 00:00:00 2001 From: Klaus Post Date: Tue, 15 Jun 2021 14:20:14 +0200 Subject: [PATCH] s2sx: Fix max size error Fixes `ERROR: max size less than unpacker. Max size must be at least 2170369 bytes`. Use `s2sx -max=1024MB` as a workaround. --- s2/cmd/_s2sx/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/s2/cmd/_s2sx/main.go b/s2/cmd/_s2sx/main.go index e54bcfe19e..1d5c49ac40 100644 --- a/s2/cmd/_s2sx/main.go +++ b/s2/cmd/_s2sx/main.go @@ -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":