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')