bin/uptime: don't print seconds, since we don't update often enough

This commit is contained in:
Dustin Kirkland 2009-04-16 10:15:32 -05:00
commit e7d43e219b
2 changed files with 3 additions and 2 deletions

View file

@ -27,7 +27,7 @@ if [ "$u" -gt 86400 ]; then
elif [ "$u" -gt 3600 ]; then
echo "$u" | awk '{printf "%dh%dm", $1 / 3600, ($1 % 3600 )/60}'
elif [ "$u" -gt 60 ]; then
echo "$u" | awk '{printf "%dm%ds", $1 / 60, $1 % 60 }'
echo "$u" | awk '{printf "%dm", $1 / 60 }'
else
printf "%ds" "$u"
fi

3
debian/changelog vendored
View file

@ -1,8 +1,9 @@
screen-profiles (1.45) unreleased; urgency=low
* bin/cpu-freq: fix for powerpc
* bin/uptime: don't print seconds, since we don't update often enough
-- Dustin Kirkland <kirkland@ubuntu.com> Thu, 09 Apr 2009 11:05:35 -0700
-- Dustin Kirkland <kirkland@ubuntu.com> Thu, 16 Apr 2009 10:15:10 -0500
screen-profiles (1.44-0ubuntu1) jaunty; urgency=low