зеркало из https://github.com/mozilla/rappor.git
Elapsed time reporting by regtest.sh is fixed.
This commit is contained in:
Родитель
c2a50f8bd8
Коммит
931328a4e9
|
@ -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
|
||||
|
|
Загрузка…
Ссылка в новой задаче