From 29901935129045c619f00b084a18cd870241d23d Mon Sep 17 00:00:00 2001 From: Christian Schwarz Date: Mon, 24 Sep 2018 19:23:10 +0200 Subject: [PATCH] replication: export SleepUntil in report --- replication/mainfsm.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/replication/mainfsm.go b/replication/mainfsm.go index b4cec9b..d876491 100644 --- a/replication/mainfsm.go +++ b/replication/mainfsm.go @@ -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 {