mirror of
https://github.com/zrepl/zrepl.git
synced 2024-11-22 00:13:52 +01:00
client/status: only show progress bar in non-planning states
This commit is contained in:
parent
9bb7b19c93
commit
025fbda984
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user