1
0
mirror of https://github.com/tw93/Mole.git synced 2026-02-07 16:49:16 +00:00

Application scanning optimization

This commit is contained in:
Tw93
2025-12-10 14:40:14 +08:00
parent 87632b940d
commit 65743da349
3 changed files with 33 additions and 15 deletions

View File

@@ -126,8 +126,7 @@ start_inline_spinner() {
# Output to stderr to avoid interfering with stdout
printf "\r${MOLE_SPINNER_PREFIX:-}${BLUE}%s${NC} %s" "$c" "$message" >&2 || exit 0
((i++))
# macOS supports decimal sleep, this is the primary target
sleep 0.1 2> /dev/null || sleep 1 2> /dev/null || exit 0
sleep 0.1
done
) &
INLINE_SPINNER_PID=$!