fix speed calc

Signed-off-by: Micky Ching <mickyching@gmail.com>