1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 20:37:34 +00:00

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

View file

@ -47,12 +47,14 @@ 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);
if (statistics.status != Noxfer) {
warnln("{} bytes copied.", statistics.total_bytes_copied);
}
}
static StringView split_at_equals(StringView argument)
{