From a5e874eca444e2221ba3107f5cda77d7565fe39a Mon Sep 17 00:00:00 2001 From: Simone Basso Date: Sun, 15 Dec 2019 15:53:53 +0100 Subject: [PATCH] psiphon: include max_runtime in results (#173) Suggested by @mirokuratczyk when we discussed the experiment in a recent chat on Slack. Closes #153. --- experiment/psiphon/psiphon.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/experiment/psiphon/psiphon.go b/experiment/psiphon/psiphon.go index 1404e3aa..33825d08 100644 --- a/experiment/psiphon/psiphon.go +++ b/experiment/psiphon/psiphon.go @@ -44,6 +44,10 @@ type TestKeys struct { // Failure contains the failure that occurred. Failure *string `json:"failure"` + // MaxRuntime is the number of seconds after which we + // interrupt the psiphon experiment. + MaxRuntime float64 `json:"max_runtime"` + // Requests contains HTTP measurements Requests oodatamodel.RequestList `json:"requests"` @@ -202,6 +206,7 @@ func (m *measurer) measure( go m.printprogress(ctx, &wg, maxruntime, callbacks) r := newRunner(m.config, callbacks) measurement.TestKeys = r.testkeys + r.testkeys.MaxRuntime = maxruntime err := r.run(ctx, sess.Logger) cancel() wg.Wait()