summaryrefslogtreecommitdiff
path: root/toxcore/assoc.c
diff options
context:
space:
mode:
Diffstat (limited to 'toxcore/assoc.c')
-rw-r--r--toxcore/assoc.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/toxcore/assoc.c b/toxcore/assoc.c
index 658c0eb4..3dbeba51 100644
--- a/toxcore/assoc.c
+++ b/toxcore/assoc.c
@@ -1014,19 +1014,19 @@ void Assoc_status(const Assoc *assoc)
1014 total++; 1014 total++;
1015 1015
1016 LOGGER_TRACE("[%3i:%3i] %08x => [%s...] %i, %i(%c), %i(%c)\n", 1016 LOGGER_TRACE("[%3i:%3i] %08x => [%s...] %i, %i(%c), %i(%c)\n",
1017 (int)bid, (int)cid, entry->hash, idpart2str(entry->client.client_id, 8), 1017 (int)bid, (int)cid, entry->hash, idpart2str(entry->client.client_id, 8),
1018 entry->used_at ? (int)(unix_time() - entry->used_at) : 0, 1018 entry->used_at ? (int)(unix_time() - entry->used_at) : 0,
1019 entry->seen_at ? (int)(unix_time() - entry->seen_at) : 0, 1019 entry->seen_at ? (int)(unix_time() - entry->seen_at) : 0,
1020 entry->seen_at ? (entry->seen_family == AF_INET ? '4' : (entry->seen_family == AF_INET6 ? '6' : '?')) : '?', 1020 entry->seen_at ? (entry->seen_family == AF_INET ? '4' : (entry->seen_family == AF_INET6 ? '6' : '?')) : '?',
1021 entry->heard_at ? (int)(unix_time() - entry->heard_at) : 0, 1021 entry->heard_at ? (int)(unix_time() - entry->heard_at) : 0,
1022 entry->heard_at ? (entry->heard_family == AF_INET ? '4' : (entry->heard_family == AF_INET6 ? '6' : '?')) : '?'); 1022 entry->heard_at ? (entry->heard_family == AF_INET ? '4' : (entry->heard_family == AF_INET6 ? '6' : '?')) : '?');
1023 } 1023 }
1024 } 1024 }
1025 } 1025 }
1026 1026
1027 if (total) { 1027 if (total) {
1028 LOGGER_TRACE("Total: %i entries, table usage %i%%.\n", (int)total, 1028 LOGGER_TRACE("Total: %i entries, table usage %i%%.\n", (int)total,
1029 (int)(total * 100 / (assoc->candidates_bucket_count * assoc->candidates_bucket_size))); 1029 (int)(total * 100 / (assoc->candidates_bucket_count * assoc->candidates_bucket_size)));
1030 } 1030 }
1031} 1031}
1032 1032