I\'m looking for the best way to calculate the percentage of successful pings and failed pings. The code I have sort of works but either continuously increments even if I st