Credit: Santa Monica Police Dept.

Jaime Pressly's DUI drama is nearly over.

Arrested in January, the 34-year-old actress will serve three years on summary probation after striking a deal with prosecutors, E! News reports. The actress blew a .22 at the time of her arrest, which is nearly three times California's legal limit.

The former My Name Is Earl star pleaded no contest to driving with a blood alcohol level of .08 or higher on Thursday. As part of the deal, prosecutors agreed to drop an additional count of driving under the influence.

Pressly was also ordered to complete a six-month alcohol program instead of the typical nine-month program, due to the blood alcohol testing already conducted by the police and Pressly's defense team. The actress will also pay $390 in fees plus penalties.

Had she been convicted, Pressly could have spent up to six months in jail.

Pressly is mom to 4-year-old Dezi with ex DJ Eric Calvo. She filed for divorce from entertainment lawyer Simran Singh on January 21.