]> git.meshlink.io Git - meshlink/blobdiff - src/protocol_misc.c
Enforce spaces around operators.
[meshlink] / src / protocol_misc.c
index b44708085a92d80d3ca0e707ccbc5215acfa37f3..6b3c4ab80637679f247895c646ec0f29e46d2177 100644 (file)
@@ -125,7 +125,7 @@ bool send_tcppacket(meshlink_handle_t *mesh, connection_t *c, const vpn_packet_t
        /* If there already is a lot of data in the outbuf buffer, discard this packet.
           We use a very simple Random Early Drop algorithm. */
 
-       if(2.0 * c->outbuf.len / (float)maxoutbufsize - 1 > (float)rand()/(float)RAND_MAX)
+       if(2.0 * c->outbuf.len / (float)maxoutbufsize - 1 > (float)rand() / (float)RAND_MAX)
                return true;
 
        if(!send_request(mesh, c, "%d %hd", PACKET, packet->len))