diff --git a/tt/sum.sh b/tt/sum.sh index 29bce12..2d66b1a 100755 --- a/tt/sum.sh +++ b/tt/sum.sh @@ -7,5 +7,7 @@ function get_sum() { hil=$(get_sum "HIL") ste=$(get_sum "STE") total=$(echo "$hil+$ste" | bc) +hil_perc=$(echo "$hil*100/$total" | bc) +ste_perc=$(echo "$ste*100/$total" | bc) -echo -e "HIL:\t$hil\nSTE:\t$ste\nTotal:\t$total" +echo -e "HIL:\t$hil\t(${hil_perc}%)\nSTE:\t$ste\t(${ste_perc}%)\nTotal:\t$total"