* bin/cpu-freq: only print cpu-freq if available

Signed-off-by: Dustin Kirkland <kirkland@canonical.com>
This commit is contained in:
Dustin Kirkland 2009-04-24 09:22:54 -05:00
commit da65a2847c
2 changed files with 3 additions and 3 deletions

View file

@ -22,4 +22,4 @@ mhz=`egrep -i -m 1 "^cpu MHz|^clock|^bogomips" /proc/cpuinfo | awk -F"[:.]" '{pr
speed=$(echo $mhz | awk '{ printf "%.1f", $1 / 1000 }') speed=$(echo $mhz | awk '{ printf "%.1f", $1 / 1000 }')
unit="GHz" unit="GHz"
printf "\005{= cW}%s$unit\005{-} " $speed [ -n "$speed" ] && printf "\005{= cW}%s$unit\005{-} " $speed

4
debian/changelog vendored
View file

@ -1,8 +1,8 @@
screen-profiles (1.51) unreleased; urgency=low screen-profiles (1.51) unreleased; urgency=low
* UNRELEASED * bin/cpu-freq: only print cpu-freq if available
-- Dustin Kirkland <kirkland@ubuntu.com> Thu, 23 Apr 2009 17:10:47 -0500 -- Dustin Kirkland <kirkland@ubuntu.com> Fri, 24 Apr 2009 09:22:16 -0500
screen-profiles (1.50-0ubuntu1) jaunty; urgency=low screen-profiles (1.50-0ubuntu1) jaunty; urgency=low