Small bug fix

Calculation of total waiting time was off.