This website works better with JavaScript.
Home
Explore
Help
Sign In
g
/
lch
Watch
1
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Projects
0
Releases
17
Wiki
Activity
Browse Source
wheel process
master
ale
4 years ago
parent
8426ae032f
commit
19cef9a556
1 changed files
with
7 additions
and
2 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+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
}
}
Write
Preview
Loading…
Cancel
Save