Simple fix for time elapsed (#94)
This commit is contained in:
parent
9e395ffa10
commit
95971e5359
1 changed files with 1 additions and 1 deletions
|
@ -556,7 +556,7 @@ class LogAnalyser:
|
||||||
case _:
|
case _:
|
||||||
raise NotImplementedError(common_error)
|
raise NotImplementedError(common_error)
|
||||||
|
|
||||||
timestamp_regex = re.compile(r"\d{2}:\d{2}:\d{2}\.\d{3}")
|
timestamp_regex = re.compile(r"(\d{2}:\d{2}:\d{2}\.\d{3})\s+?\|")
|
||||||
latest_timestamp = re.findall(timestamp_regex, self._log_text)[-1]
|
latest_timestamp = re.findall(timestamp_regex, self._log_text)[-1]
|
||||||
if latest_timestamp:
|
if latest_timestamp:
|
||||||
timestamp_message = f"ℹ️ Time elapsed: `{latest_timestamp}`"
|
timestamp_message = f"ℹ️ Time elapsed: `{latest_timestamp}`"
|
||||||
|
|
Loading…
Reference in a new issue