check_ping: Fixing "time of day goes back"

Just turning attached patch of github issue #809 into a push request.