summaryrefslogtreecommitdiff
path: root/ot_stats.c
diff options
context:
space:
mode:
Diffstat (limited to 'ot_stats.c')
-rw-r--r--ot_stats.c10
1 files changed, 1 insertions, 9 deletions
diff --git a/ot_stats.c b/ot_stats.c
index 62c59c9..f938e91 100644
--- a/ot_stats.c
+++ b/ot_stats.c
@@ -206,10 +206,6 @@ static size_t stats_return_busy_networks(char *reply, stats_network_node *tree,
206 r += sprintf(r, "%08zd: ", scores[i - 1]); 206 r += sprintf(r, "%08zd: ", scores[i - 1]);
207 // #ifdef WANT_V6 207 // #ifdef WANT_V6
208 r += ip_format(r, networks[i - 1]); 208 r += ip_format(r, networks[i - 1]);
209#if 0
210 // XXX
211 r += fmt_ip4( r, networks[i - 1]);
212#endif
213 *r++ = '\n'; 209 *r++ = '\n';
214 } 210 }
215 } 211 }
@@ -663,10 +659,6 @@ void stats_issue_event(ot_status_event event, PROTO_FLAG proto, uintptr_t event_
663 } 659 }
664 660
665 ip_readable[ip_format(ip_readable, (char *)&ws->peer)] = 0; 661 ip_readable[ip_format(ip_readable, (char *)&ws->peer)] = 0;
666#if 0
667 /* XXX */
668 ip_readable[ fmt_ip4( ip_readable, (char*)&ws->peer ) ] = 0;
669#endif
670 syslog(LOG_INFO, "time=%s event=completed info_hash=%s peer_id=%s ip=%s", timestring, hash_hex, peerid_hex, ip_readable); 662 syslog(LOG_INFO, "time=%s event=completed info_hash=%s peer_id=%s ip=%s", timestring, hash_hex, peerid_hex, ip_readable);
671 } 663 }
672#endif 664#endif
@@ -750,7 +742,7 @@ static void *stats_worker(void *args) {
750 return NULL; 742 return NULL;
751} 743}
752 744
753void stats_deliver(int64 sock, int tasktype) { mutex_workqueue_pushtask(sock, tasktype); } 745void stats_deliver(int64_t sock, int tasktype) { mutex_workqueue_pushtask(sock, tasktype); }
754 746
755static pthread_t thread_id; 747static pthread_t thread_id;
756void stats_init(void) { 748void stats_init(void) {