From 86d4c43909a2b770ca375f053dd4d7a9f33ae2e8 Mon Sep 17 00:00:00 2001 From: ed Date: Sat, 25 Sep 2021 18:04:18 +0200 Subject: [PATCH] update the up2k.sh client example --- bin/up2k.sh | 24 +++++++++++++----------- 1 file changed, 13 insertions(+), 11 deletions(-) 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 <