ping on mac delivers results with decimals like '100.0% packet loss'. So i've changed the regex on line 43 from
lossAmt = REmatchNoCase('[0-9]{1,3}%( packet| {0}) loss',pingObj)[1];
to
lossAmt = REmatchNoCase('([0-9]{1,3})*((.|,)\d)%( packet| {0}) loss',pingObj)[1];
ping on mac delivers results with decimals like '100.0% packet loss'. So i've changed the regex on line 43 from
lossAmt = REmatchNoCase('[0-9]{1,3}%( packet| {0}) loss',pingObj)[1];
to
lossAmt = REmatchNoCase('([0-9]{1,3})*((.|,)\d)%( packet| {0}) loss',pingObj)[1];