Unverified Commit ed98e371 authored by Jakub Sztandera's avatar Jakub Sztandera
Browse files

Extend time of observation by the factor of ActivationThresh

parent 955ebe34
......@@ -26,7 +26,7 @@ func (oa *ObservedAddr) TryActivate(ttl time.Duration) bool {
// cleanup SeenBy set
now := time.Now()
for k, t := range oa.SeenBy {
if now.Sub(t) > ttl {
if now.Sub(t) > ttl*ActivationThresh {
delete(oa.SeenBy, k)
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment