Skip to content

Commit

Permalink
If there is no time MSG in the processing time of the target object, …
Browse files Browse the repository at this point in the history
…use all time MSGs to configure the sim_time converter

Signed-off-by: ISP akm <[email protected]>
  • Loading branch information
xygyo77 committed Oct 7, 2024
1 parent a38a558 commit 0cd75a0
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/caret_analyze/infra/lttng/lttng.py
Original file line number Diff line number Diff line change
Expand Up @@ -862,6 +862,14 @@ def get_sim_time_converter(
system_times_filtered.append(system_time)
sim_times_filtered.append(sim_time)

if (len(system_times_filtered) < 2):
logger.warning(
'Out-of-range time is used to convert sim_time, '
'due to no time data within the operating time of the target object.')
# Use all time data
system_times_filtered = system_times
sim_times_filtered = sim_times

try:
return ClockConverter.create_from_series(system_times_filtered, sim_times_filtered)
except InvalidArgumentError:
Expand Down

0 comments on commit 0cd75a0

Please sign in to comment.