Skip to content

Commit

Permalink
Fixing detectcpu() function.
Browse files Browse the repository at this point in the history
  • Loading branch information
Brett Bohnenkamper committed Feb 10, 2012
1 parent cc4847c commit f3e4e2d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion screenfetch-dev
Expand Up @@ -363,7 +363,9 @@ detectuptime () {

# CPU Detection
detectcpu () {
cpu=$(uname -p)
cpu=$(awk -F':' '/model name/{ print $2 }' /proc/cpuinfo | head -n 1 | tr -s " " | sed 's/^ //')
# cpu_mhz=$(awk -F':' '/cpu MHz/{ print $2 }' /proc/cpuinfo | head -n 1)
# cpu_ghz=$(echo "scale=2; ${cpu_mhz} / 1000" | bc )
[[ "$verbosity" -eq "1" ]] && verboseOut "Finding current CPU...found as '$cpu'"
}
# CPU Detection - End
Expand Down

0 comments on commit f3e4e2d

Please sign in to comment.