Skip to content

Commit bb58a69

Browse files
committed
dd: Fix review findings
1 parent 52e2da9 commit bb58a69

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/uu/dd/src/progress.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ impl ProgUpdate {
147147
// Compute the throughput (bytes per second) as a string.
148148
let duration = self.duration.as_secs_f64();
149149
let safe_millis = std::cmp::max(1, self.duration.as_millis());
150-
let rate = 1000 * btotal / safe_millis;
150+
let rate = (1000u128 * btotal) / safe_millis;
151151
let transfer_rate = to_magnitude_and_suffix(rate, SuffixType::Si);
152152

153153
// If we are rewriting the progress line, do write a carriage

0 commit comments

Comments
 (0)