MoeClub пре 4 година
родитељ
комит
df9680a2f5
1 измењених фајлова са 1 додато и 0 уклоњено
  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