Fix wrong timestamp checking arithmetic
Calculation was being made without int->double conversion, resulting in nonsense value. Also, First timestamp is always zero so add a check to not consider that a mistake.
Calculation was being made without int->double conversion, resulting in nonsense value. Also, First timestamp is always zero so add a check to not consider that a mistake.