From 204a53d4e56ddbcfbae96d7ffc9ddd0fbecc3854 Mon Sep 17 00:00:00 2001 From: Adam Shapiro Date: Mon, 9 Dec 2024 16:19:19 -0500 Subject: [PATCH] Fixed p1_capture --output-format option. --- python/fusion_engine_client/applications/p1_capture.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/python/fusion_engine_client/applications/p1_capture.py b/python/fusion_engine_client/applications/p1_capture.py index f9ff5c21..9f267bdc 100755 --- a/python/fusion_engine_client/applications/p1_capture.py +++ b/python/fusion_engine_client/applications/p1_capture.py @@ -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) @@ -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')