From 47d8a5a7cdea630ab604e494c761991e957547ca Mon Sep 17 00:00:00 2001 From: Anton Schirg Date: Thu, 30 Aug 2018 12:48:27 +0200 Subject: [PATCH] status: only show active not all versions of active filesystem --- client/status.go | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/client/status.go b/client/status.go index c2deccf..cc171a4 100644 --- a/client/status.go +++ b/client/status.go @@ -244,11 +244,9 @@ func printFilesystem(rep *fsrep.Report, t *tui, versions bool) { t.newline() t.addIndent(-1) } - if versions { - vs := append(rep.Completed, rep.Pending...) - for _, v := range vs { - t.drawBar(" " + v.To, v.Status, v.Bytes, v.ExpectedBytes) - } + if versions && len(rep.Pending) > 0 { + v := rep.Pending[0] + t.drawBar(" " + v.To, v.Status, v.Bytes, v.ExpectedBytes) } }