The real story here is that civil contempt can net you an indefinite prison sentence without a conviction, and if you're lucky a judge will decide to let you out. Over something you may or may not even know.
Seems sort of like he was held for as long as he'd have been held if he'd been judged guilty of stealing everything he was accused of stealing, and if he wanted to default himself into prison for that stretch without a trial, the judge was content to oblige him.