fix bz987773, make max calculation use a floating point
Merge pull request #3154 from rajatchopra/master

Merged by openshift-bot
Merge remote-tracking branch 'origin/master' into changes_for_membership