Explorar o código

Update rand.sh

MoeClub %!s(int64=4) %!d(string=hai) anos
pai
achega
df9680a2f5
Modificáronse 1 ficheiros con 1 adicións e 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