mirror of
https://github.com/zrepl/zrepl.git
synced 2025-01-11 00:39:51 +01:00
status: only show active not all versions of active filesystem
This commit is contained in:
parent
583773025f
commit
47d8a5a7cd
@ -244,13 +244,11 @@ 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 {
|
||||
if versions && len(rep.Pending) > 0 {
|
||||
v := rep.Pending[0]
|
||||
t.drawBar(" " + v.To, v.Status, v.Bytes, v.ExpectedBytes)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
func ByteCountBinary(b int64) string {
|
||||
const unit = 1024
|
||||
|
Loading…
Reference in New Issue
Block a user