From 9ad353452a4e2fabb02f60ac7b6f901934a8322f Mon Sep 17 00:00:00 2001 From: Dustin Kirkland Date: Sun, 2 Oct 2011 20:15:06 -0400 Subject: [PATCH] * usr/lib/byobu/raid: - fix raid rebuild percentage formatting --- debian/changelog | 2 ++ usr/lib/byobu/raid | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/debian/changelog b/debian/changelog index 3764e593..aa0e16e1 100644 --- a/debian/changelog +++ b/debian/changelog @@ -14,6 +14,8 @@ byobu (4.38) unreleased; urgency=low - split the OS distribution name and version to two separate status items; enable the version (but not the name) in the compact tmux status line + * usr/lib/byobu/raid: + - fix raid rebuild percentage formatting -- Dustin Kirkland Thu, 29 Sep 2011 14:46:58 -0400 diff --git a/usr/lib/byobu/raid b/usr/lib/byobu/raid index 202c1fc3..841c1060 100755 --- a/usr/lib/byobu/raid +++ b/usr/lib/byobu/raid @@ -31,7 +31,7 @@ __raid() { *\ blocks\ *\[*_*\]$) [ -z "${msg}" ] && msg="RAID";; *%*) - p="${line%%${PCT}*}${PCT}"; p=${p##* }; + p="${line%%\%*}${PCT}"; p=${p##* }; [ -z "$msg" ] && msg="RAID" msg="$msg,$p";; esac