aboutsummaryrefslogtreecommitdiff
path: root/src/util/gnunet-service-resolver.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/util/gnunet-service-resolver.c')
-rw-r--r--src/util/gnunet-service-resolver.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/util/gnunet-service-resolver.c b/src/util/gnunet-service-resolver.c
index 507ecf661..cab13ae57 100644
--- a/src/util/gnunet-service-resolver.c
+++ b/src/util/gnunet-service-resolver.c
@@ -1,10 +1,10 @@
1/* 1/*
2 This file is part of GNUnet. 2 This file is part of GNUnet.
3 (C) 2007, 2008, 2009, 2012 Christian Grothoff (and other contributing authors) 3 (C) 2007-2013 Christian Grothoff (and other contributing authors)
4 4
5 GNUnet is free software; you can redistribute it and/or modify 5 GNUnet is free software; you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published 6 it under the terms of the GNU General Public License as published
7 by the Free Software Foundation; either version 2, or (at your 7 by the Free Software Foundation; either version 3, or (at your
8 option) any later version. 8 option) any later version.
9 9
10 GNUnet is distributed in the hope that it will be useful, but 10 GNUnet is distributed in the hope that it will be useful, but
@@ -217,8 +217,8 @@ get_ip_as_string (struct GNUNET_SERVER_Client *client,
217 (0 != memcmp (pos->ip, ip, ip_len))) ) 217 (0 != memcmp (pos->ip, ip, ip_len))) )
218 { 218 {
219 next = pos->next; 219 next = pos->next;
220 if (GNUNET_TIME_absolute_get_duration (pos->last_request).rel_value < 220 if (GNUNET_TIME_absolute_get_duration (pos->last_request).rel_value_us <
221 60 * 60 * 1000) 221 60 * 60 * 1000 * 1000LL)
222 { 222 {
223 GNUNET_CONTAINER_DLL_remove (cache_head, 223 GNUNET_CONTAINER_DLL_remove (cache_head,
224 cache_tail, 224 cache_tail,
@@ -231,8 +231,8 @@ get_ip_as_string (struct GNUNET_SERVER_Client *client,
231 if (pos != NULL) 231 if (pos != NULL)
232 { 232 {
233 pos->last_request = now; 233 pos->last_request = now;
234 if (GNUNET_TIME_absolute_get_duration (pos->last_request).rel_value < 234 if (GNUNET_TIME_absolute_get_duration (pos->last_request).rel_value_us <
235 60 * 60 * 1000) 235 60 * 60 * 1000 * 1000LL)
236 { 236 {
237 GNUNET_free_non_null (pos->addr); 237 GNUNET_free_non_null (pos->addr);
238 pos->addr = NULL; 238 pos->addr = NULL;