From 37bcb961778c5b65052745824ff737feaa57ddef Mon Sep 17 00:00:00 2001 From: Marcus Date: Sat, 6 Jan 2024 17:51:41 +0100 Subject: [PATCH] we should cound correct :) --- pixelfloot.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pixelfloot.sh b/pixelfloot.sh index 66cf00a..123281e 100755 --- a/pixelfloot.sh +++ b/pixelfloot.sh @@ -318,12 +318,12 @@ frametick() { i=0 while true do - echo "$i" > $FRAMETOPICK_SHM - if [ "$i" -gt $LOLFIELDS ] + if [ "$i" -lt $LOLFIELDS ] then - i=0 - else + echo "$i" > $FRAMETOPICK_SHM i=$(($i+1)) + else + i=0 fi sleep $FRAMETICKTIME done