mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-29 03:57:44 +00:00
Merge pull request #2915 from jfinkels/dd-status-noxfer
dd: correct behavior when status=noxfer
This commit is contained in:
commit
5c45911c13
2 changed files with 8 additions and 3 deletions
|
@ -398,8 +398,13 @@ where
|
||||||
}
|
}
|
||||||
|
|
||||||
match i.print_level {
|
match i.print_level {
|
||||||
Some(StatusLevel::Noxfer) | Some(StatusLevel::None) => {}
|
Some(StatusLevel::None) => {}
|
||||||
_ => print_transfer_stats(&ProgUpdate {
|
Some(StatusLevel::Noxfer) => print_io_lines(&ProgUpdate {
|
||||||
|
read_stat: rstat,
|
||||||
|
write_stat: wstat,
|
||||||
|
duration: start.elapsed(),
|
||||||
|
}),
|
||||||
|
Some(StatusLevel::Progress) | None => print_transfer_stats(&ProgUpdate {
|
||||||
read_stat: rstat,
|
read_stat: rstat,
|
||||||
write_stat: wstat,
|
write_stat: wstat,
|
||||||
duration: start.elapsed(),
|
duration: start.elapsed(),
|
||||||
|
|
|
@ -183,7 +183,7 @@ fn test_final_stats_noxfer() {
|
||||||
new_ucmd!()
|
new_ucmd!()
|
||||||
.args(&["status=noxfer"])
|
.args(&["status=noxfer"])
|
||||||
.succeeds()
|
.succeeds()
|
||||||
.stderr_only("");
|
.stderr_only("0+0 records in\n0+0 records out\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue