Browse Source

wheel process

master
ale 3 years ago
parent
commit
19cef9a556
1 changed files with 7 additions and 2 deletions
  1. +7
    -2
      lib/resources.sh

+ 7
- 2
lib/resources.sh View File

@ -98,6 +98,11 @@ function wheel() {
while $1; do
printf '%.1s\b' "$sp"
sp=${sp#?}${sp%???}
sleep 0.1s
if [ -x "$(command -v bc)" ]
then
sleep $(echo "0.0001*$(grep 'cpu MHz' /proc/cpuinfo | head -n1 | awk '{print $4}')" | bc -l)s
else
sleep 0.2s
fi
done
}
}

Loading…
Cancel
Save