Skip to content

Commit

Permalink
Fixed p1_capture --output-format option.
Browse files Browse the repository at this point in the history
  • Loading branch information
adamshapiro0 committed Dec 14, 2024
1 parent 21bedb4 commit 204a53d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions python/fusion_engine_client/applications/p1_capture.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ def main():

# Open the output file if logging was requested.
if options.output is not None:
if options.format == 'p1log':
if options.output_format == 'p1log':
p1i_path = os.path.splitext(options.output)[0] + '.p1i'
if os.path.exists(p1i_path):
os.remove(p1i_path)
Expand All @@ -151,9 +151,9 @@ def main():
else:
output_file = None

generating_raw_log = (output_file is not None and options.format == 'raw')
generating_p1log = (output_file is not None and options.format == 'p1log')
generating_csv = (output_file is not None and options.format == 'csv')
generating_raw_log = (output_file is not None and options.output_format == 'raw')
generating_p1log = (output_file is not None and options.output_format == 'p1log')
generating_csv = (output_file is not None and options.output_format == 'csv')

if generating_csv:
output_file.write(b'host_time,type,p1_time,sys_time\n')
Expand Down

0 comments on commit 204a53d

Please sign in to comment.