diff options
Diffstat (limited to 'toxcore/assoc.c')
-rw-r--r-- | toxcore/assoc.c | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/toxcore/assoc.c b/toxcore/assoc.c index 8c78543f..3dbeba51 100644 --- a/toxcore/assoc.c +++ b/toxcore/assoc.c | |||
@@ -996,11 +996,11 @@ static char *idpart2str(uint8_t *id, size_t len) | |||
996 | void Assoc_status(const Assoc *assoc) | 996 | void Assoc_status(const Assoc *assoc) |
997 | { | 997 | { |
998 | if (!assoc) { | 998 | if (!assoc) { |
999 | LOGGER_INFO("Assoc status: no assoc"); | 999 | LOGGER_TRACE("Assoc status: no assoc"); |
1000 | return; | 1000 | return; |
1001 | } | 1001 | } |
1002 | 1002 | ||
1003 | LOGGER_INFO("[b:p] hash => [id...] used, seen, heard"); | 1003 | LOGGER_TRACE("[b:p] hash => [id...] used, seen, heard"); |
1004 | 1004 | ||
1005 | size_t bid, cid, total = 0; | 1005 | size_t bid, cid, total = 0; |
1006 | 1006 | ||
@@ -1013,20 +1013,20 @@ void Assoc_status(const Assoc *assoc) | |||
1013 | if (entry->hash) { | 1013 | if (entry->hash) { |
1014 | total++; | 1014 | total++; |
1015 | 1015 | ||
1016 | LOGGER_INFO("[%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_INFO("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 | ||