Balaganapathy

Despite being stopped by the rat, Ram disrupts Ganapati's prayers. Ganpati is very angry with Ram for this. He curses Ram and the only way Ram can repent is by standing on one leg and praying. How long will Ram be able to do this?