Explorar el Código

Update rand.sh

MoeClub hace 4 años
padre
commit
df9680a2f5
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  1. 1 0
      rand.sh

+ 1 - 0
rand.sh

@@ -5,6 +5,7 @@ Max=95
 Num=0
 
 CORES=$(cat /proc/cpuinfo| grep -i "physical id"| sort| uniq| wc -l)
+[ -n "$CORES" ] || CORES=1
 
 function RAND() {
   min=$1