diff --git a/pingparser.py b/pingparser.py index 1ab9941..3314555 100755 --- a/pingparser.py +++ b/pingparser.py @@ -27,7 +27,7 @@ # This one works on OS X output which includes the percentage in 0.0% format # https://regex101.com/r/nmjQzI/2 -rslt_matcher = re.compile(r'(\d+) packets transmitted, (\d+) (?:packets )?received, (\d+\.?\d*)% packet loss') +rslt_matcher = re.compile(r'(\d+) packets transmitted, (\d+) (?:packets )?received, (?:\+\d+ errors, )?(\d+\.?\d*)% packet loss') # Pull out round-trip min/avg/max/stddev = 49.042/49.042/49.042/0.000 ms minmax_matcher = re.compile(r'(\d+.\d+)/(\d+.\d+)/(\d+.\d+)/(\d+.\d+)')