From 9baa4d1c3c5b592510af75495c718faadeaf9cd0 Mon Sep 17 00:00:00 2001 From: Nick Craig-Wood Date: Mon, 27 Feb 2023 16:46:12 +0000 Subject: [PATCH] accounting: show checking tag if available even on transfers --- fs/accounting/transfermap.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/fs/accounting/transfermap.go b/fs/accounting/transfermap.go index bfd04b22c..518124ffc 100644 --- a/fs/accounting/transfermap.go +++ b/fs/accounting/transfermap.go @@ -98,6 +98,7 @@ func (tm *transferMap) String(ctx context.Context, progress *inProgress, exclude ci := fs.GetConfig(ctx) stringList := make([]string, 0, len(tm.items)) for _, tr := range tm._sortedSlice() { + var what = tr.what if exclude != nil { exclude.mu.RLock() _, found := exclude.items[tr.remote] @@ -109,8 +110,10 @@ func (tm *transferMap) String(ctx context.Context, progress *inProgress, exclude var out string if acc := progress.get(tr.remote); acc != nil { out = acc.String() + if what != "" { + out += ", " + what + } } else { - what := tr.what if what == "" { what = tm.name }