From df40c2284daaf3268c7c897d277f21d44e9b292b Mon Sep 17 00:00:00 2001 From: Alan Cox Date: Fri, 21 Sep 2018 22:03:06 +0100 Subject: [PATCH] fsck: slow down the whirly wotsit --- Applications/util/fsck-fuzix.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) 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) -- 2.34.1