lib/scripts/timestart.bash
changeset 18322 56554bb23eda
parent 18317 bab988e37393
child 18327 1ee4523c831f
     1.1 --- a/lib/scripts/timestart.bash	Thu Dec 01 18:41:46 2005 +0100
     1.2 +++ b/lib/scripts/timestart.bash	Thu Dec 01 18:44:47 2005 +0100
     1.3 @@ -13,9 +13,8 @@
     1.4  function get_times () {
     1.5    local TMP="/tmp/get_times$$"
     1.6    times > "$TMP"   # No pipe here!
     1.7 -  TIMES_RESULT="$SECONDS $(tail -1 "$TMP" | "$AUTO_PERL" -pe 's,(\d+)m(\d+)\.\d+s, $1 * 60 + $2,ge')"
     1.8 +  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')"
     1.9    /bin/rm -f "$TMP"
    1.10  }
    1.11  
    1.12  get_times  # sets TIMES_RESULT
    1.13 -