This is if you had a negative effect before going to bed, but if it was positive, then the effectiveness of sleep depends on the remainder of the positive effect. For mortals not vampiresthe maximum effective sleep duration is 12 hours.
The dependence of the duration of positive effects on the duration of sleep has been implemented, now one hour of sleep is equal to two hours of rest. The old very first version of the mod in comparison with this, a pitiful parody, the same one I wrote anew and according to another more flexible system. Description: The mod introduces a sleep system into the game.