Skip to content

fix blocks.div_ceil(len, bs) #523

Closed

Description

@sylvestre
          Might as well make the same fix right above: https://github.com/uutils/findutils/blob/5235d782916f51b31ba9e1f41fae717ba6dfd871/src/find/matchers/printf.rs#L396

Side note: I think the code here is wrong, but that can be fixed in a different PR. It should be more like

let blocks = meta()?.blocks();
let len = blocks * STANDARD_BLOCK_SIZE;
let bs = if *large_blocks { 1024 } else { 512 };
blocks.div_ceil(len, bs)

Originally posted by @tavianator in #522 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions