Skip to content

Commit abd452c

Browse files
authored
Merge pull request pi-hole#37 from atiensivu/atiensivu-patch-1
Correct CoreCount on non-Pi devices
2 parents da51f98 + 06017c0 commit abd452c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

padd.sh

+2-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@ PADDVersion="2.1.0"
1919
today=$(date +%Y%m%d)
2020

2121
# CORES
22-
coreCount=$(grep -c 'model name' /proc/cpuinfo)
22+
declare -i coreCount=1
23+
coreCount=$(cat /sys/devices/system/cpu/kernel_max 2> /dev/null)+1
2324

2425
# COLORS
2526
blackText=$(tput setaf 0) # Black

0 commit comments

Comments
 (0)