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:
parent
829063f894
commit
cea65bd1bc
|
@ -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 ()
|
||||
|
|
Loading…
Reference in New Issue