u
This commit is contained in:
		
							parent
							
								
									6eaa066a19
								
							
						
					
					
						commit
						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