Court martial and Stockade?
Perhaps not a court martial. Commanding officers punishment (Reduction in rank, half pay for two months) - maybe. Stockade - would depend on many things.
My point being that the scenario you describe isn't torture. It may not be quite the way it should be but it's not torture.