pingd: fix time error when process sleeps

and perhaps some other problems