After some uptime the total_time_scheduled can get too big for accurate float subtraction. It's better to do the subtraction in u64 and use float only for the division later on.