Changed the way the average ping is calculated