$ 0 0 A class-action lawsuit says thousands of inmates are being detained longer than they should be.