From da65a2847c27cb760088a7b072ed392a690aadc1 Mon Sep 17 00:00:00 2001 From: Dustin Kirkland Date: Fri, 24 Apr 2009 09:22:54 -0500 Subject: [PATCH] * bin/cpu-freq: only print cpu-freq if available Signed-off-by: Dustin Kirkland --- bin/cpu-freq | 2 +- debian/changelog | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/bin/cpu-freq b/bin/cpu-freq index a627872d..d89b3a05 100755 --- a/bin/cpu-freq +++ b/bin/cpu-freq @@ -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 }') unit="GHz" -printf "\005{= cW}%s$unit\005{-} " $speed +[ -n "$speed" ] && printf "\005{= cW}%s$unit\005{-} " $speed diff --git a/debian/changelog b/debian/changelog index 79402e20..a83e7c68 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,8 +1,8 @@ screen-profiles (1.51) unreleased; urgency=low - * UNRELEASED + * bin/cpu-freq: only print cpu-freq if available - -- Dustin Kirkland Thu, 23 Apr 2009 17:10:47 -0500 + -- Dustin Kirkland Fri, 24 Apr 2009 09:22:16 -0500 screen-profiles (1.50-0ubuntu1) jaunty; urgency=low