mirror of
https://github.com/zrepl/zrepl.git
synced 2024-12-22 15:11:16 +01:00
replication: export SleepUntil in report
This commit is contained in:
parent
75ba5874a5
commit
2990193512
@ -77,6 +77,7 @@ type Replication struct {
|
|||||||
type Report struct {
|
type Report struct {
|
||||||
Status string
|
Status string
|
||||||
Problem string
|
Problem string
|
||||||
|
SleepUntil time.Time
|
||||||
Completed []*fsrep.Report
|
Completed []*fsrep.Report
|
||||||
Pending []*fsrep.Report
|
Pending []*fsrep.Report
|
||||||
Active *fsrep.Report
|
Active *fsrep.Report
|
||||||
@ -379,6 +380,7 @@ func (r *Replication) Report() *Report {
|
|||||||
|
|
||||||
rep := Report{
|
rep := Report{
|
||||||
Status: r.state.String(),
|
Status: r.state.String(),
|
||||||
|
SleepUntil: r.sleepUntil,
|
||||||
}
|
}
|
||||||
|
|
||||||
if r.state&(Planning|PlanningError|ContextDone) != 0 {
|
if r.state&(Planning|PlanningError|ContextDone) != 0 {
|
||||||
|
Loading…
Reference in New Issue
Block a user