summaryrefslogtreecommitdiff
path: root/testing/toxic/dhtstatus.c
diff options
context:
space:
mode:
authorirungentoo <irungentoo@gmail.com>2013-08-15 14:24:32 -0400
committerirungentoo <irungentoo@gmail.com>2013-08-15 14:24:32 -0400
commit575804d19f4e99f544e12330121eebbcc6b6ebfd (patch)
treea128e72ab04080d8ef6c8b3847325552eebaf470 /testing/toxic/dhtstatus.c
parentbf6c04b2cafe0a132aa54c6134217a0f4369a054 (diff)
Small improvement to DHT. Useless file removed. Small fix to toxic.
Diffstat (limited to 'testing/toxic/dhtstatus.c')
-rw-r--r--testing/toxic/dhtstatus.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/testing/toxic/dhtstatus.c b/testing/toxic/dhtstatus.c
index 66268900..e026a173 100644
--- a/testing/toxic/dhtstatus.c
+++ b/testing/toxic/dhtstatus.c
@@ -43,13 +43,13 @@ static void dhtstatus_onDraw(ToxWindow *self)
43 uint32_t i, j; 43 uint32_t i, j;
44 ipbuf ipbuf; 44 ipbuf ipbuf;
45 wprintw(self->window,"\n%llu ______________________ CLOSE LIST ________________________ ___ IP ADDR ___ _PRT_ LST PNG ____ SELF ____ _PRT_ LST\n\n", now); 45 wprintw(self->window,"\n%llu ______________________ CLOSE LIST ________________________ ___ IP ADDR ___ _PRT_ LST PNG ____ SELF ____ _PRT_ LST\n\n", now);
46 for(i = 0; i < CLIENT_ID_SIZE; i++) { 46 for(i = 0; i < 32; i++) { /*Number of nodes in closelist*/
47 Client_data * client = close_clientlist + i; 47 Client_data * client = close_clientlist + i;
48 if (i == num_selected) wattron(self->window, COLOR_PAIR(3)); 48 if (i == num_selected) wattron(self->window, COLOR_PAIR(3));
49 wprintw(self->window,"[%02i] ", i); 49 wprintw(self->window,"[%02i] ", i);
50 uint16_t port = ntohs(client->ip_port.port); 50 uint16_t port = ntohs(client->ip_port.port);
51 if(port) { 51 if(port) {
52 for(j = 0; j < 32; j++) 52 for(j = 0; j < CLIENT_ID_SIZE; j++)
53 wprintw(self->window, "%02hhx", client->client_id[j]); 53 wprintw(self->window, "%02hhx", client->client_id[j]);
54 54
55 printip(ipbuf, client->ip_port.ip); 55 printip(ipbuf, client->ip_port.ip);