mirror of
https://github.com/zrepl/zrepl.git
synced 2025-05-29 22:30:49 +02: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()) {
|
if rep.SleepUntil.After(time.Now()) {
|
||||||
t.printf("Sleeping until %s (%s left)\n", rep.SleepUntil, rep.SleepUntil.Sub(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) {
|
sumUpFSRep := func(rep *fsrep.Report) (transferred, total int64) {
|
||||||
for _, s := range rep.Pending {
|
for _, s := range rep.Pending {
|
||||||
transferred += s.Bytes
|
transferred += s.Bytes
|
||||||
|
Loading…
x
Reference in New Issue
Block a user