[PATCH] improve precision of idle time detection.