Fixed framerate calculations

Framerate was being calculated by dividing int with an int and saving to
double, added casts to double for both ints.