diff --git a/examples/console/stats.go b/examples/console/stats.go index a62a9a61..761a8e41 100644 --- a/examples/console/stats.go +++ b/examples/console/stats.go @@ -108,7 +108,7 @@ func (s *stats) AgreementsPerSecond() float64 { if timeFinish.IsZero() { timeFinish = time.Now() } - duration := s.timeFinish.Sub(s.timeStart) + duration := timeFinish.Sub(s.timeStart) rate := float64(s.agreementsSent+s.agreementsReceived) / duration.Seconds() if math.IsNaN(rate) || math.IsInf(rate, 0) { rate = 0 diff --git a/sdk/state/doc.go b/sdk/state/doc.go index a278b685..32f08785 100644 --- a/sdk/state/doc.go +++ b/sdk/state/doc.go @@ -18,16 +18,16 @@ The Open, Payment, and Close operations are broken up into three steps: - Finalize*: Called by the payer to finalize the agreement with the payees signatures. - +-----------+ +-----------+ - | Payer | | Payee | - +-----+-----+ +-----+-----+ - | | - Propose | - +----------------->+ - | Confirm - +<-----------------+ - Finalize* | - | | + +-----------+ +-----------+ + | Payer | | Payee | + +-----+-----+ +-----+-----+ + | | + Propose | + +----------------->+ + | Confirm + +<-----------------+ + Finalize* | + | | * Note that the Open and Close processes do not have a Finalize operation, and the Confirm is used in its place at this time. A Finalize operation is likely to be