diff options
author | Andy Green <andy.green@linaro.org> | 2015-08-18 06:34:13 +0800 |
---|---|---|
committer | Andy Green <andy.green@linaro.org> | 2015-08-18 06:34:13 +0800 |
commit | d3c6a89e1d842243deff11faa7bd35727e8edf67 (patch) | |
tree | 0a73abf9178c70601b705699133557184c7bce9f | |
parent | 40258492100463748eab36bc464f3b56037ea0ea (diff) |
add LOC comparison percentage
Signed-off-by: Andy Green <andy.green@linaro.org>
-rwxr-xr-x | growth.sh | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -161,7 +161,7 @@ set key autotitle columnhead set style fill transparent solid 0.5 noborder set xtics rotate set style data histogram -set label "$6" at graph 0.99,0.8 right +set label "$6" at graph 0.96,0.8 right plot $1 EOF @@ -209,7 +209,6 @@ sq3 "create table if not exists dir_summary (\ loc_removed integer \ );" - if [ -z "$1" ] ; then >&2 echo "" >&2 echo "Usage: $0 <basis branch> --tags <tag regexp>" @@ -570,7 +569,7 @@ echo $R Q="`cat .plot.tmp | head -n1 | \ cut -d' ' -f$(( $C + 2 ))`" - _TOT="Total LOC $Q: $TOT" + _TOT="Total LOC $Q: `printf %7d $TOT`" echo $_TOT @@ -582,7 +581,8 @@ echo $R Q="`cat .plot.tmp | head -n1 | \ cut -d' ' -f$(( $N + 3 ))`" \ - _TOT="Total LOC $Q: $TOTC\n$_TOT" + _TOT="Total LOC $Q: `printf %7d $TOTC`\n$_TOT\n\ + (`printf %3d $(( $TOT * 100 / $TOTC ))`%)" fi issue_plot_file_dist \ |