Skip to content
  • Rob Swindell's avatar
    9031ac11
    Cosmetic improvements to duration*_to_[v]str() functions · 9031ac11
    Rob Swindell authored
    Use lower case y/w/d/h/m suffix.
    
    If a duration is an exact multiple, don't display ".0" fraction. This is not
    consistent with byte_estimate_to_str() string generation, but I think it's
    more in line with human expectations.
    
    Don't display "90d" as "12.9w" (unless the requested unit is one-week).
    9031ac11
    Cosmetic improvements to duration*_to_[v]str() functions
    Rob Swindell authored
    Use lower case y/w/d/h/m suffix.
    
    If a duration is an exact multiple, don't display ".0" fraction. This is not
    consistent with byte_estimate_to_str() string generation, but I think it's
    more in line with human expectations.
    
    Don't display "90d" as "12.9w" (unless the requested unit is one-week).
Loading