mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-27 19:17:43 +00:00
cksum: use div_ceil() from std
This commit is contained in:
parent
7fb0f8a29d
commit
fc2f73b16c
1 changed files with 3 additions and 3 deletions
|
@ -22,7 +22,7 @@ use uucore::{
|
|||
format_usage, help_about, help_section, help_usage,
|
||||
line_ending::LineEnding,
|
||||
os_str_as_bytes, show,
|
||||
sum::{div_ceil, Digest},
|
||||
sum::Digest,
|
||||
};
|
||||
|
||||
const USAGE: &str = help_usage!("cksum.md");
|
||||
|
@ -124,7 +124,7 @@ where
|
|||
format!(
|
||||
"{} {}{}",
|
||||
sum.parse::<u16>().unwrap(),
|
||||
div_ceil(sz, options.output_bits),
|
||||
sz.div_ceil(options.output_bits),
|
||||
if not_file { "" } else { " " }
|
||||
),
|
||||
!not_file,
|
||||
|
@ -134,7 +134,7 @@ where
|
|||
format!(
|
||||
"{:0bsd_width$} {:bsd_width$}{}",
|
||||
sum.parse::<u16>().unwrap(),
|
||||
div_ceil(sz, options.output_bits),
|
||||
sz.div_ceil(options.output_bits),
|
||||
if not_file { "" } else { " " }
|
||||
),
|
||||
!not_file,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue