Only print cpu cores if they're found

This commit is contained in:
Dylan 2016-03-25 22:17:54 +11:00
parent 5d7ed48661
commit 2984687018
1 changed files with 1 additions and 1 deletions

View File

@ -923,7 +923,7 @@ getcpu () {
cpu=${cpu// with Radeon HD Graphics}
# Add cpu cores to output
[ "$cpu_cores" == "on" ] && \
[ "$cpu_cores" == "on" ] && [ ! -z "$cores" ] && \
cpu=${cpu/@/\(${cores}\) @}
# Make the output of cpu shorter