Elapsed time reporting by regtest.sh is fixed.

This commit is contained in:
Ilya Mironov 2015-08-04 16:53:51 -07:00
Родитель c2a50f8bd8
Коммит 931328a4e9
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -160,7 +160,7 @@ def ExtractTime(log_filename):
with open(log_filename) as log:
log_str = log.read()
# Matching a line output by analyze.R.
match = re.search(r'Running analyze.R took ([0-9.]+) seconds', log_str)
match = re.search(r'Inference took ([0-9.]+) seconds', log_str)
if match:
return float(match.group(1))
return None