Compare commits
2 Commits
58ecb4369e
...
8df479e7a1
Author | SHA1 | Date | |
---|---|---|---|
8df479e7a1 | |||
d2bdbe774e |
9
cpu-test-by-pi.sh
Normal file
9
cpu-test-by-pi.sh
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
echo "=== Enter Pi precision to calculate (leave blank for default to 5000): "
|
||||||
|
read -p ">>> " precision
|
||||||
|
if [ ! $precision ]; then
|
||||||
|
precision=5000
|
||||||
|
fi
|
||||||
|
|
||||||
|
time echo "scale=$precision; 4*a(1)" | bc -l -q
|
Loading…
Reference in New Issue
Block a user