lib/scripts/timestop.bash
changeset 28492 5175b022e216
parent 28469 0946c81ab77b
child 29145 b1c6f4563df7
equal deleted inserted replaced
28491:c5420429a5aa 28492:5175b022e216
    43   if let "$TIME1 >= 5 && $TIME2 >= 5"
    43   if let "$TIME1 >= 5 && $TIME2 >= 5"
    44   then
    44   then
    45     local FACTOR=$(( $TIME2 * 100 / $TIME1 ))
    45     local FACTOR=$(( $TIME2 * 100 / $TIME1 ))
    46     local FACTOR1=$(( $FACTOR / 100 ))
    46     local FACTOR1=$(( $FACTOR / 100 ))
    47     local FACTOR2=$(( $FACTOR % 100 ))
    47     local FACTOR2=$(( $FACTOR % 100 ))
       
    48     if let "$FACTOR2 < 10"; then FACTOR2="0$FACTOR2"; fi
    48     TIMES_REPORT="$TIMES_REPORT, factor ${FACTOR1}.${FACTOR2}"
    49     TIMES_REPORT="$TIMES_REPORT, factor ${FACTOR1}.${FACTOR2}"
    49   fi
    50   fi
    50 }
    51 }
    51 
    52 
    52 show_times  # sets TIMES_REPORT
    53 show_times  # sets TIMES_REPORT