In addition to the compensation provided by § 24-11-32, for each day's labor the prisoner shall be credited two dollars on any judgment for fine, and when imprisoned in default of payment of a fine, he shall be discharged whenever he has performed sufficient labor at such rate to pay the same.
SDCL 24-11-33