it was small consolation to think that there was no shortage of time : two months or more would be required to repair the ship , and until then he and all his men would be cooling their heels on shore .