In a Sutro weir, the discharge is proportional to