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:
Muhammad Herdiansyah 2017-07-20 22:39:06 +07:00
parent 9c5dbcdfd6
commit 92b68e506e

View file

@ -1052,7 +1052,10 @@ get_cpu() {
# Add CPU cores to the output. # Add CPU cores to the output.
[[ "$cpu_cores" != "off" && "$cores" ]] && \ [[ "$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. # Add CPU speed to the output.
if [[ "$cpu_speed" != "off" && "$speed" ]]; then if [[ "$cpu_speed" != "off" && "$speed" ]]; then