Better computation of the progress bar widths

pmeunier
Aug 3, 2021, 4:32 PM
DFK4BTAA6IHIYARZWQH6LLBMWL2CMENP2MOYBQCKQMCTT72ZXNKAC

Dependencies

  • [2] 3OF3DHLM Fixing a panic with narrow terminal windows
  • [3] BNPSVXIC Friendlier progress bars

Change contents

  • replacement in pijul/src/progress.rs at line 197
    [2.281][2.281:461]()
    let mut n = *i;
    while n > 0 {
    n /= 10;
    nd += 1
    }
    nd
    [2.281]
    [2.461]
    nd * 2