Browse Source

Update rand.sh

MoeClub 4 years ago
parent
commit
df9680a2f5
1 changed files with 1 additions and 0 deletions
  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