Prefer std::min over ternary operation

Grabbing the lesser of the two is the intent.  Use std::min to show this
more explicitly.