When it appears, at the time of passing sentence upon a person convicted upon indictment, that such person has already paid a fine or suffered an imprisonment for the act of which he stands convicted, under an order adjudging it a contempt, the Court authorized to pass sentence may mitigate the punishment to be imposed, in its discretion.