From 62f25351b42b01eaca6ad18728a9012348f49cf9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mart=C3=ADn=20Fern=C3=A1ndez?= Date: Wed, 13 Feb 2019 01:13:29 +0100 Subject: [PATCH] use fractional sleep as a fallback for devices where usleep isn't present --- platform/common/spinning_zsync | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platform/common/spinning_zsync b/platform/common/spinning_zsync index d006d4ee1..b35f9e210 100755 --- a/platform/common/spinning_zsync +++ b/platform/common/spinning_zsync @@ -30,7 +30,7 @@ fi #SPINNER="▌ ▛ ▀ ▜ ▐ ▟ ▄ ▙" while :; do for spin in ${SPINNER}; do - usleep 500000 + usleep 500000 2>/dev/null || sleep 0.5 # NOTE: Throw stderr to the void because I'm cheating w/ U+FFFD for a blank character, # which FBInk replaces by a blank, but not before shouting at us on stderr ;). ./fbink -q -y -7 -pmh "${ZSYNC_MESSAGE} ${spin}" 2>/dev/null