From 0f3a66f856fd33c575984ee5ee5b5a03aa0f19fb Mon Sep 17 00:00:00 2001 From: Alois Wohlschlager Date: Sun, 23 Nov 2025 11:45:31 +0100 Subject: [PATCH] libstore: stop duplicating the unit in the retry message Commit 5dc847b47b4e0e970d6a1cf2da0abd7a4e1bad2e introduced usage of std::chrono::milliseconds, which prints with the unit, leading to its duplication. Remove this duplication again. Specifically, the explicitly printed one is kept, due to better typography. Change-Id: I724ea6be6f2a1349fe799602c3429f096a6a6964 --- lix/libstore/filetransfer.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lix/libstore/filetransfer.cc b/lix/libstore/filetransfer.cc index 97a6fb75a..185b5b3a5 100644 --- a/lix/libstore/filetransfer.cc +++ b/lix/libstore/filetransfer.cc @@ -1113,7 +1113,7 @@ struct curlFileTransfer : public FileTransfer "%s; retrying from offset %d in %d ms (attempt %d/%d)", Uncolored(context), totalReceived, - waitTime, + waitTime.count(), Uncolored(attempt), Uncolored(tries) ); @@ -1121,7 +1121,7 @@ struct curlFileTransfer : public FileTransfer printTaggedWarning( "%s; retrying in %d ms (attempt %d/%d)", Uncolored(context), - waitTime, + waitTime.count(), Uncolored(attempt), Uncolored(tries) );