fixed whitespace issue with windows cpu info

This commit is contained in:
dylan araps 2016-01-05 16:59:45 +11:00
parent cb8444c41a
commit b9bb282c8d

View file

@ -450,6 +450,7 @@ getcpu () {
# Get cpu name
cpu="$(grep 'model name' /proc/cpuinfo)"
cpu=${cpu/model name*: /}
cpu=${cpu% }
speed=$(grep 'cpu MHz' /proc/cpuinfo)
speed=${speed/cpu MHz*: /}