mirror of
https://github.com/zrepl/zrepl.git
synced 2024-12-23 15:38:49 +01:00
status: only show active not all versions of active filesystem
This commit is contained in:
parent
583773025f
commit
47d8a5a7cd
@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user