Nove formatting bloc down

This commit is contained in:
dylan 2016-04-04 21:25:42 +10:00
parent d1c3f30ba7
commit 37e9ac5d0f

View file

@ -992,6 +992,10 @@ getcpu () {
esac esac
fi fi
cores=$(awk -F ': ' '/siblings/ {printf $2; exit}' /proc/cpuinfo)
;;
esac
# Fix for speeds under 1ghz # Fix for speeds under 1ghz
if [ -z "${speed:1}" ]; then if [ -z "${speed:1}" ]; then
speed="0.${speed}" speed="0.${speed}"
@ -999,10 +1003,6 @@ getcpu () {
speed=${speed:0:1}.${speed:1} speed=${speed:0:1}.${speed:1}
fi fi
cores=$(awk -F ': ' '/siblings/ {printf $2; exit}' /proc/cpuinfo)
;;
esac
cpu="$cpu @ ${speed}GHz" cpu="$cpu @ ${speed}GHz"
;; ;;
esac esac