Explorar o código

modules/cdp: omitted last_selected time when choosing a loadbalanced peer

Jason Penton %!s(int64=11) %!d(string=hai) anos
pai
achega
70f7dbedd7
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      modules/cdp/routing.c

+ 1 - 0
modules/cdp/routing.c

@@ -123,6 +123,7 @@ peer* get_first_connected_route(routing_entry *r,int app_id,int vendor_id)
 		}
 	}
 
+	p->last_selected = time(NULL);
 	return p;
 }