From cdd88ac6a3e82fd26adb5d6f16d69d5b368836c5 Mon Sep 17 00:00:00 2001 From: Rien Date: Sat, 31 Oct 2020 15:55:08 +0100 Subject: [PATCH] Apply @thomsten's suggestion Co-authored-by: Thomas Stenersen --- reStream.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/reStream.sh b/reStream.sh index 49be962..e81c34c 100755 --- a/reStream.sh +++ b/reStream.sh @@ -126,7 +126,7 @@ case "$rm_version" in pixel_format="gray8" pid="$(ssh_cmd pidof xochitl)" pointer="$(rm2_getpointer)" - read_address="addr=\$(dd if=/proc/$pid/mem bs=1 count=4 skip=$pointer 2>/dev/null | hexdump | awk '{print \$3\$2\}') && printf '%d' \$((16#\$addr))" + read_address="addr=\$(dd if=/proc/$pid/mem bs=1 count=4 skip=$pointer 2>/dev/null | hexdump | awk '{print \$3\$2}') && printf '%d' \$((16#\$addr))" skipbytes="$(ssh_cmd "$read_address")" # calculate how much bytes the window is window_bytes="$((width * height * bytes_per_pixel))"