Let me see if I got this right.
David Petraeus, ex-general, ex-CIA chief, et. al., swaps his top-secret CIA notebook to his mistress for few nights of bedroom rumble. Edward Snowden, ex-NSA contractor, gives away secrets on what he considers a moral principle.
For Snowden, our government wants life in prison (or at least a lot of years). For Petraeus, he gets a suspended jail sentence of a year.