client/status: only show progress bar in non-planning states

This commit is contained in:
Christian Schwarz 2018-10-12 16:00:37 +02:00
parent 9bb7b19c93
commit 025fbda984

View File

@ -261,7 +261,9 @@ func (t *tui) renderReplicationReport(rep *replication.Report) {
if rep.SleepUntil.After(time.Now()) {
t.printf("Sleeping until %s (%s left)\n", rep.SleepUntil, rep.SleepUntil.Sub(time.Now()))
}
{ // Progress: [---------------]
if rep.Status != replication.Planning.String() &&
rep.Status != replication.PlanningError.String() {
// Progress: [---------------]
sumUpFSRep := func(rep *fsrep.Report) (transferred, total int64) {
for _, s := range rep.Pending {
transferred += s.Bytes