diff -r 0040ee0b01c9 -r a716d3b289ed lib/scripts/timestart.bash --- a/lib/scripts/timestart.bash Wed Dec 07 12:33:38 2005 +0100 +++ b/lib/scripts/timestart.bash Wed Dec 07 15:23:22 2005 +0100 @@ -13,7 +13,7 @@ function get_times () { local TMP="/tmp/get_times$$" times > "$TMP" # No pipe here! - TIMES_RESULT="$SECONDS $(tail -1 "$TMP" | "$AUTO_PERL" -pe 's,(\d+)m(\d+)\.\d+s +(\d+)m(\d+)\.\d+s, $1 * 60 + $2 + $3 * 60 + $4,e')" + TIMES_RESULT="$SECONDS $(echo $(cat "$TMP") | "$AUTO_PERL" -pe 's,\d+m\d+\.\d+s \d+m\d+\.\d+s (\d+)m(\d+)\.\d+s +(\d+)m(\d+)\.\d+s, $1 * 60 + $2 + $3 * 60 + $4,e')" rm -f "$TMP" }