From: Alan Cox Date: Fri, 21 Sep 2018 21:03:06 +0000 (+0100) Subject: fsck: slow down the whirly wotsit X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=df40c2284daaf3268c7c897d277f21d44e9b292b;p=FUZIX.git fsck: slow down the whirly wotsit --- diff --git a/Applications/util/fsck-fuzix.c b/Applications/util/fsck-fuzix.c index 2d71d979..bc80d9aa 100644 --- a/Applications/util/fsck-fuzix.c +++ b/Applications/util/fsck-fuzix.c @@ -123,10 +123,12 @@ static int yes(void) { static void progress(void) { static uint8_t progct; - progct++; - progct&=3; - printf("%c\010", "-\\|/"[progct]); - fflush(stdout); + static uint8_t scalect; + if (++scalect == 16) { + scalect = 0; + printf("%c\010", "-\\|/"[progct++&3]); + fflush(stdout); + } } static void bitset(uint16_t b)