]> git.meshlink.io Git - meshlink/blobdiff - src/net_socket.c
Improved node traffic counters.
[meshlink] / src / net_socket.c
index 4989b6cf0578a0471a868cdfc8a1a09a633bdd32..8b1263b063fb8df8c5900e68a09361921ac5e636 100644 (file)
@@ -136,6 +136,10 @@ static void handle_meta_write(meshlink_handle_t *mesh, connection_t *c) {
                return;
        }
 
+       if(c->node) {
+               c->node->out_meta += outlen;
+       }
+
        buffer_read(&c->outbuf, outlen);
 
        if(!c->outbuf.len) {