bin/cpu-freq: always report in GHz

-Dustin Kirkland <kirkland@ubuntu.com>Thu, 16 Apr 2009 12:55:35 -0500
This commit is contained in:
Dustin Kirkland 2009-04-16 12:55:52 -05:00
commit 44d1b3eab6
2 changed files with 5 additions and 9 deletions

View file

@ -19,11 +19,7 @@
mhz=`egrep -i -m 1 "^cpu MHz|^clock|^bogomips" /proc/cpuinfo | awk -F"[:.]" '{print $2}'`
if [ $mhz -ge 1000 ]; then
speed=$(echo $mhz | awk '{ printf "%.1f", $1 / 1000 }')
unit="GHz"
else
speed="$mhz"
unit="MHz"
fi
speed=$(echo $mhz | awk '{ printf "%.1f", $1 / 1000 }')
unit="GHz"
printf "\005{= cW}%s$unit\005{-} " $speed

4
debian/changelog vendored
View file

@ -1,7 +1,7 @@
screen-profiles (1.45) unreleased; urgency=low
[ Dustin Kirkland ]
* bin/cpu-freq: fix for powerpc, fix for arm
* bin/cpu-freq: fix for powerpc, fix for arm, always report in GHz
* bin/uptime: don't print seconds, since we don't update often enough
* screen-profiles-status: use home bin scripts, if available first,
then fallback to system-wide, allows for local overrides; comment
@ -12,7 +12,7 @@ screen-profiles (1.45) unreleased; urgency=low
[ Jon Bernard <bernardj@gmail.com> ]
* debian/control: fix typo in screen-profiles-extras description
-- Dustin Kirkland <kirkland@ubuntu.com> Thu, 16 Apr 2009 12:51:38 -0500
-- Dustin Kirkland <kirkland@ubuntu.com> Thu, 16 Apr 2009 12:55:35 -0500
screen-profiles (1.44-0ubuntu1) jaunty; urgency=low