Support log file without "buf size" message

Instead of trying to get the buf size in the first log, grep on all logs
and take the value of the first match.
This commit is contained in:
Thomas Preud'homme 2011-05-04 19:30:49 +02:00
parent 829063f894
commit cea65bd1bc
1 changed files with 1 additions and 1 deletions

View File

@ -48,7 +48,7 @@ init_log_vars ()
fi
metriqueList="cache_hits cache_miss cycles total_time"
nbIter=`ls -1 *.log | head -1 | sed -r "s/^.*nbIter_([[:digit:]]+).*$/\1/"`
valuePerCacheLine=$(grep "^buf size: " $(ls -1 *.log | head -1) | sed -r "s/^buf size: ([[:digit:]]+)$/\1/")
valuePerCacheLine=$(grep "^buf size: " *.log | head -1 | sed -r "s/^.*:buf size: ([[:digit:]]+)$/\1/")
}
parse_args ()