summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xgrowth.sh17
1 files changed, 11 insertions, 6 deletions
diff --git a/growth.sh b/growth.sh
index 9854fb0..63eaf79 100755
--- a/growth.sh
+++ b/growth.sh
@@ -551,7 +551,10 @@ echo $R
SMALLEST=`cat .smallest`
- FIXEDCOLS=3
+ FIXEDCOLS=2
+# if [ ! -z "$COMP_RUN" ] ; then
+# FIXEDCOLS=3
+# fi
#
# add in the title row
@@ -608,6 +611,8 @@ echo $R
C=1
while [ $C -le $N ]; do
+ echo $C $N
+
BIGGEST=`cat .biggest`
NEXT_BIGGEST=`cat .next-biggest`
SMALLEST=`cat .smallest`
@@ -637,20 +642,20 @@ echo $R
if [ ! -z "$SNC" ] ; then
PL="'.plot.tmp' using \
- 1:$(( $N + $FIXEDCOLS )):xtic(2) \
+ 1:$(( $N + $FIXEDCOLS + 1 )):xtic(2) \
w boxes lc rgb \"#ff0000\",$PL"
PLR="'.plot.tmp' using \
- 1:(-\$$(( $N + $FIXEDCOLS ))):xtic(2) \
+ 1:(-\$$(( $N + $FIXEDCOLS + 1 ))):xtic(2) \
w boxes lc rgb \"#0000ff\",$PLR"
TOTC="`cat .plot.tmp |tail -n+3 | \
- cut -d' ' -f$(( $N + $FIXEDCOLS )) |\
+ cut -d' ' -f$(( $N + $FIXEDCOLS + 1 )) |\
paste -sd+ | bc`"
Q="`cat .plot.tmp | head -n1 | \
- cut -d' ' -f$(( $N + $FIXEDCOLS ))`" \
+ cut -d' ' -f$(( $N + $FIXEDCOLS + 1 ))`" \
B="`cat .plot.tmp | head -n2 | tail -n1 |\
- cut -d' ' -f$(( $N + $FIXEDCOLS ))`"
+ cut -d' ' -f$(( $N + $FIXEDCOLS + 1 ))`"
echo $TOT $TOTC