Use usleep, not nanosleep

That's what happens when you code while tired.