status: only show active not all versions of active filesystem

This commit is contained in:
Anton Schirg 2018-08-30 12:48:27 +02:00
parent 583773025f
commit 47d8a5a7cd

View File

@ -244,11 +244,9 @@ func printFilesystem(rep *fsrep.Report, t *tui, versions bool) {
t.newline() t.newline()
t.addIndent(-1) t.addIndent(-1)
} }
if versions { if versions && len(rep.Pending) > 0 {
vs := append(rep.Completed, rep.Pending...) v := rep.Pending[0]
for _, v := range vs { t.drawBar(" " + v.To, v.Status, v.Bytes, v.ExpectedBytes)
t.drawBar(" " + v.To, v.Status, v.Bytes, v.ExpectedBytes)
}
} }
} }