replication: export SleepUntil in report

This commit is contained in:
Christian Schwarz 2018-09-24 19:23:10 +02:00
parent 75ba5874a5
commit 2990193512

View File

@ -77,6 +77,7 @@ type Replication struct {
type Report struct {
Status string
Problem string
SleepUntil time.Time
Completed []*fsrep.Report
Pending []*fsrep.Report
Active *fsrep.Report
@ -379,6 +380,7 @@ func (r *Replication) Report() *Report {
rep := Report{
Status: r.state.String(),
SleepUntil: r.sleepUntil,
}
if r.state&(Planning|PlanningError|ContextDone) != 0 {