dd: Make status=noxfer still print some statistics

This commit is contained in:
Karol Kosek 2023-05-14 20:41:12 +02:00 committed by Jelle Raaijmakers
parent 2f6c99dce5
commit 4020892945
Notes: sideshowbarker 2024-07-17 02:08:15 +09:00

View File

@ -47,11 +47,13 @@ struct {
static void closing_statistics()
{
if (statistics.status != Default)
if (statistics.status == None)
return;
warnln("{}+{} blocks in", statistics.total_blocks_in, statistics.partial_blocks_in);
warnln("{}+{} blocks out", statistics.total_blocks_out, statistics.partial_blocks_out);
warnln("{} bytes copied.", statistics.total_bytes_copied);
if (statistics.status != Noxfer) {
warnln("{} bytes copied.", statistics.total_bytes_copied);
}
}
static StringView split_at_equals(StringView argument)