summaryrefslogtreecommitdiff
path: root/toxcore/Lossless_UDP.c
diff options
context:
space:
mode:
Diffstat (limited to 'toxcore/Lossless_UDP.c')
-rw-r--r--toxcore/Lossless_UDP.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/toxcore/Lossless_UDP.c b/toxcore/Lossless_UDP.c
index e291340d..04533a3b 100644
--- a/toxcore/Lossless_UDP.c
+++ b/toxcore/Lossless_UDP.c
@@ -455,8 +455,9 @@ uint32_t sendqueue_total(Lossless_UDP *ludp)
455{ 455{
456 uint32_t i, total = 0; 456 uint32_t i, total = 0;
457 457
458 for(i = 0; i < ludp->connections.len; i++) { 458 for (i = 0; i < ludp->connections.len; i++) {
459 Connection *connection = &tox_array_get(&ludp->connections, i, Connection); 459 Connection *connection = &tox_array_get(&ludp->connections, i, Connection);
460
460 if (connection->status != 0) 461 if (connection->status != 0)
461 total += connection->sendbuff_packetnum - connection->successful_sent; 462 total += connection->sendbuff_packetnum - connection->successful_sent;
462 } 463 }