status: only show active not all versions of active filesystem
This commit is contained in:
+2
-4
@@ -244,13 +244,11 @@ 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)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
func ByteCountBinary(b int64) string {
|
func ByteCountBinary(b int64) string {
|
||||||
const unit = 1024
|
const unit = 1024
|
||||||
|
|||||||
Reference in New Issue
Block a user