Fix connection weight estimation.
authorGuus Sliepen <guus@tinc-vpn.org>
Fri, 19 Oct 2007 18:53:48 +0000 (18:53 +0000)
committerGuus Sliepen <guus@tinc-vpn.org>
Fri, 19 Oct 2007 18:53:48 +0000 (18:53 +0000)
src/protocol_auth.c

index 291c4b0176f02a25978924551f9c0d66fb98e0b7..46bb6e645d897665ee3d100ca779a68340e0b4de 100644 (file)
@@ -40,6 +40,8 @@
 bool send_id(connection_t *c) {
        cp();
 
+       gettimeofday(&c->start, NULL);
+
        return send_request(c, "%d %s %d", ID, myself->connection->name,
                                                myself->connection->protocol_version);
 }