Prosecutors had asked that Ravi be sent to prison; they did not say how much time he should get.

A former Rutgers University student who used a webcam to spy on his gay roommate was sentenced Monday to 30 days in jail—just a fraction of the maximum—in a case that focused attention on anti-gay bullying, teen suicide, and hate-crime laws in the fast-changing internet age.

Dharun Ravi, 20, was also placed on three years’ probation for his part in an episode that burst onto the front pages after his roommate, Tyler Clementi, threw himself to his death off the George Washington Bridge.

“Our society has every right to expect zero tolerance for intolerance,” Judge Glenn Berman said in imposing far less than the maximum, 10 years behind bars.

In addition, Ravi was ordered to get counseling and pay $10,000 toward a program to help victims of hate crimes.

The judge said he would not recommend Ravi be deported to India, where he was born and remains a citizen.

The New Jersey gay rights organization Garden State Equality expressed disappointment with the punishment. In a statement, chairman Steven Goldstein said that while the maximum would have been too much, the 30-day sentence was close to the other possible extreme, no prison time at all.

“This was not merely a childhood prank gone awry. This was not a crime without bias,” Goldstein said.

Prosecutors had asked that Ravi be sent to prison; they did not say how much time he should get, other than that it did not have to be the maximum.

Ravi, his family, and his lawyers left the courthouse without comment. He is expected to appeal his conviction. Prosecutors told the judge they are considering appealing the sentence, but they had no immediate comment outside court.