The judge sentencing Ashley Gill-Webb said although his behaviour was "serious" enough to demand punishment, he thought Gill-Webb was unlikely to offend again.
Gill-Webb was found guilty of intending to cause the men's Olympic 100m finalists harassment, alarm or distress by using threatening, abusive or disorderly behaviour.
Prosecutor Helen Shaw said the high-profile nature of the incident and the fact that the world was watching were aggravating factors.
[It was a] once-in-a-four-year event watched by millions of people around the world.
Some of the people who were in that area missed the event and had paid up to £4,000 a ticket.
More top news
An elephant calf had to be rescued in Sri Lanka after becoming trapped in a drain.
According to local reports, the repairman had failed to disconnect the power to the escalator before getting to work.
Millwall fans who caused problems at the match against Barnsley could face lifetime bans, the club said.