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
The singer best known as Johnny Rotten offered advice for Britain's Brexit negotiators as he told ITV News his biggest hit is misunderstood.
The Atlantic regains control of our weather
Bosnian Kerim Ahmetspahic smashed the concrete blocks in just 35 seconds, achieving a Guinness World Record in the process.