Fixes an over looked integer math to double error causing fractional
values to calculate incorrectly. 

Signed-off-by: Jared Woolston <jwoolston@tenkiv.com>