Former CIA Director David Petraeus, whose career was destroyed by an extramarital affair with his biographer, has been sentenced to two years' probation and a $100,000 fine for giving her classified material while she was working on the book.

Thursday's sentencing came two months after Petraeus agreed to plead guilty to a misdemeanor count of unauthorized removal and retention of classified material.

The plea agreement carried a possible sentence of up to a year in prison. In court papers, prosecutors recommended two years of probation and a $40,000 fine. But the judge was not bound by that.

The agreement was filed in federal court in Charlotte, where Paula Broadwell, the general's biographer and former lover, lives with her husband and children.