From d0ed1639144a5f3358d8bc69ad0885d0c1133877 Mon Sep 17 00:00:00 2001 From: irungentoo Date: Thu, 27 Jun 2013 07:37:06 -0400 Subject: Fixed something in the DHT, added a milisecond time function. --- testing/DHT_test.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'testing') 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() } p_ip = close_clientlist[i].ip_port; 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)); - printf("\nTimestamp: %u\n", close_clientlist[i].timestamp); + printf("\nTimestamp: %u", close_clientlist[i].timestamp); + printf("\nLast pinged: %u\n", close_clientlist[i].last_pinged); } } @@ -73,7 +74,8 @@ void print_friendlist() } p_ip = friends_list[k].client_list[i].ip_port; 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)); - printf("\nTimestamp: %u\n", friends_list[k].client_list[i].timestamp); + printf("\nTimestamp: %u", friends_list[k].client_list[i].timestamp); + printf("\nLast pinged: %u\n", friends_list[k].client_list[i].last_pinged); } } } -- cgit v1.2.3