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

Merged by openshift-bot