diff options
author | irungentoo <irungentoo@gmail.com> | 2013-06-27 07:37:06 -0400 |
---|---|---|
committer | irungentoo <irungentoo@gmail.com> | 2013-06-27 07:37:06 -0400 |
commit | d0ed1639144a5f3358d8bc69ad0885d0c1133877 (patch) | |
tree | 237e58d3314875939ccd20641a55fb0bfa2d4237 /testing | |
parent | 0068d370ffdb33fe62ab20f3e4654463f469724c (diff) |
Fixed something in the DHT, added a milisecond time function.
Diffstat (limited to 'testing')
-rw-r--r-- | testing/DHT_test.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/testing/DHT_test.c b/testing/DHT_test.c index be2f0168..1eae74a0 100644 --- a/testing/DHT_test.c +++ b/testing/DHT_test.c | |||
@@ -40,7 +40,8 @@ void print_clientlist() | |||
40 | } | 40 | } |
41 | p_ip = close_clientlist[i].ip_port; | 41 | p_ip = close_clientlist[i].ip_port; |
42 | printf("\nIP: %u.%u.%u.%u Port: %u",p_ip.ip.c[0],p_ip.ip.c[1],p_ip.ip.c[2],p_ip.ip.c[3],ntohs(p_ip.port)); | 42 | printf("\nIP: %u.%u.%u.%u Port: %u",p_ip.ip.c[0],p_ip.ip.c[1],p_ip.ip.c[2],p_ip.ip.c[3],ntohs(p_ip.port)); |
43 | printf("\nTimestamp: %u\n", close_clientlist[i].timestamp); | 43 | printf("\nTimestamp: %u", close_clientlist[i].timestamp); |
44 | printf("\nLast pinged: %u\n", close_clientlist[i].last_pinged); | ||
44 | } | 45 | } |
45 | } | 46 | } |
46 | 47 | ||
@@ -73,7 +74,8 @@ void print_friendlist() | |||
73 | } | 74 | } |
74 | p_ip = friends_list[k].client_list[i].ip_port; | 75 | p_ip = friends_list[k].client_list[i].ip_port; |
75 | printf("\nIP: %u.%u.%u.%u:%u",p_ip.ip.c[0],p_ip.ip.c[1],p_ip.ip.c[2],p_ip.ip.c[3],ntohs(p_ip.port)); | 76 | printf("\nIP: %u.%u.%u.%u:%u",p_ip.ip.c[0],p_ip.ip.c[1],p_ip.ip.c[2],p_ip.ip.c[3],ntohs(p_ip.port)); |
76 | printf("\nTimestamp: %u\n", friends_list[k].client_list[i].timestamp); | 77 | printf("\nTimestamp: %u", friends_list[k].client_list[i].timestamp); |
78 | printf("\nLast pinged: %u\n", friends_list[k].client_list[i].last_pinged); | ||
77 | } | 79 | } |
78 | } | 80 | } |
79 | } | 81 | } |