fixed getAvgWait method

it now returns a valid avg wait time