Chris Brown avoids trial with Rihanna assault plea deal

What is wrong with the California justice system? I wanted a trial darnit.
Chris Brown gets 180 days hard labor and 5 years felony probation. He must also stay at least 10 yards away from Rihanna if they are at the same event.
If there was a trial, Chris Brown faced up to 5 years in jail.
So apparently in California a man can beat up his girlfriend and disfigure her, and he can just plead guilty and get hard labor.
Was justice served?