Every cloud has a silver lining.
Apart from missing out on the illy coffee, he can report back whether prison food is better than the crew meals as has been suggested more than once.
Was this the same person that was one of the Gang of Four, who were colloquially nicknamed "N T S B", who were the first guys to skip off to do freighter commands out of seniority on crap terms?
Regardless, the sentence seems completely inappropriate for the perceived error in judgement.
The error in judgement being getting married to start with.
These days, why would you.
I hope there's an adequate appeal process, that would at least allow any sentence to be suspended.