From d0d159f52109a0c7e376f5e7451984ad845f90ab Mon Sep 17 00:00:00 2001 From: Christine Dodrill Date: Sat, 30 Sep 2017 08:39:30 -0700 Subject: [PATCH] tun2: only report phi failure detection if it's above 0.8 --- lib/tun2/server.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/tun2/server.go b/lib/tun2/server.go index 03180c3..3bf5020 100644 --- a/lib/tun2/server.go +++ b/lib/tun2/server.go @@ -156,7 +156,7 @@ func (s *Server) ListenAndServe() error { for _, c := range s.conns { failureChance := c.detector.Phi(now) - if failureChance != 0 { + if failureChance > 0.8 { ln.Log(c.F(), ln.F{ "action": "phi_failure_detection", "value": failureChance,