tun2: only report phi failure detection if it's above 0.8
This commit is contained in:
parent
626f8896fa
commit
d0d159f521
|
@ -156,7 +156,7 @@ func (s *Server) ListenAndServe() error {
|
||||||
for _, c := range s.conns {
|
for _, c := range s.conns {
|
||||||
failureChance := c.detector.Phi(now)
|
failureChance := c.detector.Phi(now)
|
||||||
|
|
||||||
if failureChance != 0 {
|
if failureChance > 0.8 {
|
||||||
ln.Log(c.F(), ln.F{
|
ln.Log(c.F(), ln.F{
|
||||||
"action": "phi_failure_detection",
|
"action": "phi_failure_detection",
|
||||||
"value": failureChance,
|
"value": failureChance,
|
||||||
|
|
Loading…
Reference in New Issue