Update fps calculation.

Signed-off-by: Y.Moon <chglove@live.cn>