The general rule is that a defendant serves 50 percent of his or her sentence while in prison. (Pen. Code §2933.) However, if the current offense is listed as a “violent felony” in Penal Code §667.5(c), the defendant serves 85 percent of the prison sentence.