DEFAULT_TIMEOUT is a global variable
which is already set to 10 seconds
check_dig: stick with integer devision

The result can get larger this way, so the time available for the last dig(1)
attempt will be smaller than for the previous attempts. (Suggested by Holger)