Fix rounding of time units