Skip to content

Commit

Permalink
Merge pull request #573 from miaotony/fix-LiveRingCapture-param
Browse files Browse the repository at this point in the history
Fix LiveRingCapture params.
  • Loading branch information
KimiNewt authored Jul 12, 2022
2 parents 7821e77 + 803d76c commit 8e0d543
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pyshark/capture/live_ring_capture.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ def __init__(self, ring_file_size=1024, num_ring_files=1, ring_file_name='/tmp/p
decryption_key=decryption_key, encryption_type=encryption_type,
tshark_path=tshark_path, decode_as=decode_as, disable_protocol=disable_protocol,
override_prefs=override_prefs, capture_filter=capture_filter,
use_json=False, use_ek=False, include_raw=include_raw, eventloop=eventloop,
use_json=use_json, use_ek=use_ek, include_raw=include_raw, eventloop=eventloop,
custom_parameters=custom_parameters, debug=debug)

self.ring_file_size = ring_file_size
Expand All @@ -48,5 +48,5 @@ def __init__(self, ring_file_size=1024, num_ring_files=1, ring_file_name='/tmp/p
def get_parameters(self, packet_count=None):
params = super(LiveRingCapture, self).get_parameters(packet_count=packet_count)
params += ['-b', 'filesize:' + str(self.ring_file_size), '-b', 'files:' + str(self.num_ring_files),
'-w', self.ring_file_name, '-P']
'-w', self.ring_file_name, '-P', '-V']
return params

0 comments on commit 8e0d543

Please sign in to comment.