From 66b77be2d0e7e20aa689f61fa897999ce2a950df Mon Sep 17 00:00:00 2001 From: Rob Quist Date: Fri, 30 Sep 2022 02:43:01 +0200 Subject: [PATCH] Add retrieval deal ID and bytes transferred to retrieval output --- cli/client_retr.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cli/client_retr.go b/cli/client_retr.go index 3fe656f15..23acf1f08 100644 --- a/cli/client_retr.go +++ b/cli/client_retr.go @@ -181,12 +181,14 @@ func retrieve(ctx context.Context, cctx *cli.Context, fapi lapi.FullNode, sel *l event = retrievalmarket.ClientEvents[*evt.Event] } - printf("Recv %s, Paid %s, %s (%s), %s\n", + printf("Recv %s, Paid %s, %s (%s), %s [%d|%d]\n", types.SizeStr(types.NewInt(evt.BytesReceived)), types.FIL(evt.TotalPaid), strings.TrimPrefix(event, "ClientEvent"), strings.TrimPrefix(retrievalmarket.DealStatuses[evt.Status], "DealStatus"), time.Now().Sub(start).Truncate(time.Millisecond), + evt.ID, + types.NewInt(evt.BytesReceived), ) switch evt.Status {