diff options
author | Christian Grothoff <christian@grothoff.org> | 2013-08-11 21:21:56 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2013-08-11 21:21:56 +0000 |
commit | 3d7fefedc9ba60bd8e8448efe8b628446d958536 (patch) | |
tree | 61ce41a52cd6e7232cead77818ef265993b2427e /src/util/gnunet-service-resolver.c | |
parent | 4a0398474db197abed243a123fb971fbeeffab4b (diff) | |
download | gnunet-3d7fefedc9ba60bd8e8448efe8b628446d958536.tar.gz gnunet-3d7fefedc9ba60bd8e8448efe8b628446d958536.zip |
changing time measurement from milliseconds to microseconds
Diffstat (limited to 'src/util/gnunet-service-resolver.c')
-rw-r--r-- | src/util/gnunet-service-resolver.c | 12 |
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; |