From 4ad390304ccdbd866446781676ac8c68f2dc0cac Mon Sep 17 00:00:00 2001 From: Paul Fd Date: Fri, 27 Mar 2020 00:35:18 +0100 Subject: [PATCH] Corrected a bug with the filname extraction --- scripts/performance_report.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/performance_report.py b/scripts/performance_report.py index fb85068e..13693f8d 100755 --- a/scripts/performance_report.py +++ b/scripts/performance_report.py @@ -71,9 +71,9 @@ def extract_file_name_and_prefix(file_name): """ file_prefix = file_name[:file_prefix_length] - if file.endswith(file_log_suffix): + if file_name.endswith(file_log_suffix): suffix_length = len(file_log_suffix) - elif file.endswith(callback_log_suffix): + elif file_name.endswith(callback_log_suffix): suffix_length = len(callback_log_suffix) else: suffix_length = 0