diff --git a/bin/up2k.sh b/bin/up2k.sh index e81ed332..e4e89df3 100755 --- a/bin/up2k.sh +++ b/bin/up2k.sh @@ -8,7 +8,7 @@ set -e ## ## config -datalen=$((2*1024*1024*1024)) +datalen=$((128*1024*1024)) target=127.0.0.1 posturl=/inc passwd=wark @@ -37,10 +37,10 @@ gendata() { # pipe a chunk, get the base64 checksum gethash() { printf $( - sha512sum | cut -c-64 | + sha512sum | cut -c-66 | sed -r 's/ .*//;s/(..)/\\x\1/g' ) | - base64 -w0 | cut -c-43 | + base64 -w0 | cut -c-44 | tr '+/' '-_' } @@ -123,7 +123,7 @@ printf '\033[36m' { { cat <