tun2: only report phi failure detection if it's above 0.8

This commit is contained in:
Cadey Ratio 2017-09-30 08:39:30 -07:00
parent 626f8896fa
commit d0d159f521
No known key found for this signature in database
GPG Key ID: D607EE27C2E7F89A
1 changed files with 1 additions and 1 deletions

View File

@ -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,