mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-08-01 05:27:45 +00:00
Minor optimization in calculation of lcm for internal r/w buffer.
This commit is contained in:
parent
96fd665ce1
commit
a511db504b
1 changed files with 1 additions and 1 deletions
|
@ -812,7 +812,7 @@ fn gen_prog_updater(rx: mpsc::Receiver<usize>) -> impl Fn() -> ()
|
|||
fn calc_bsize(ibs: usize, obs: usize) -> usize
|
||||
{
|
||||
let gcd = Gcd::gcd(ibs, obs);
|
||||
let lcm = (ibs*obs)/gcd;
|
||||
let lcm = (ibs/gcd)*obs;
|
||||
|
||||
lcm
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue