fix incorrect time interval comparison in 8e2f2de2015684246603224d4ad8fc9035178307