CPU: Separate Mac CPU cores addition
Well, at least now I know why the CPU cores were added that way.
This commit is contained in:
parent
9c5dbcdfd6
commit
92b68e506e
5
neofetch
5
neofetch
|
@ -1052,7 +1052,10 @@ get_cpu() {
|
|||
|
||||
# Add CPU cores to the output.
|
||||
[[ "$cpu_cores" != "off" && "$cores" ]] && \
|
||||
cpu="$cpu ($cores)"
|
||||
case "$os" in
|
||||
"Mac OS X") cpu="${cpu/@/(${cores}) @}" ;;
|
||||
*) cpu="$cpu ($cores)" ;;
|
||||
esac
|
||||
|
||||
# Add CPU speed to the output.
|
||||
if [[ "$cpu_speed" != "off" && "$speed" ]]; then
|
||||
|
|
Reference in New Issue