Fix fail percent calculution.

otherwise, you can have >100% failure percent, which is nonsense