aboutsummaryrefslogtreecommitdiff
path: root/src/core/gnunet-service-core_sessions.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/gnunet-service-core_sessions.c')
-rw-r--r--src/core/gnunet-service-core_sessions.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/core/gnunet-service-core_sessions.c b/src/core/gnunet-service-core_sessions.c
index bf27d5600..a77919bde 100644
--- a/src/core/gnunet-service-core_sessions.c
+++ b/src/core/gnunet-service-core_sessions.c
@@ -1,6 +1,6 @@
1/* 1/*
2 This file is part of GNUnet. 2 This file is part of GNUnet.
3 (C) 2009, 2010, 2011 Christian Grothoff (and other contributing authors) 3 (C) 2009-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
@@ -240,8 +240,8 @@ transmit_typemap_task (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc)
240 delay = TYPEMAP_FREQUENCY; 240 delay = TYPEMAP_FREQUENCY;
241 } 241 }
242 /* randomize a bit to avoid spont. sync */ 242 /* randomize a bit to avoid spont. sync */
243 delay.rel_value += 243 delay.rel_value_us +=
244 GNUNET_CRYPTO_random_u32 (GNUNET_CRYPTO_QUALITY_WEAK, 1000); 244 GNUNET_CRYPTO_random_u32 (GNUNET_CRYPTO_QUALITY_WEAK, 1000 * 1000);
245 session->typemap_task = 245 session->typemap_task =
246 GNUNET_SCHEDULER_add_delayed (delay, &transmit_typemap_task, session); 246 GNUNET_SCHEDULER_add_delayed (delay, &transmit_typemap_task, session);
247 GNUNET_STATISTICS_update (GSC_stats, 247 GNUNET_STATISTICS_update (GSC_stats,
@@ -409,7 +409,7 @@ discard_expired_requests (struct Session *session)
409 { 409 {
410 pos = nxt; 410 pos = nxt;
411 nxt = pos->next; 411 nxt = pos->next;
412 if ((pos->deadline.abs_value < now.abs_value) && 412 if ((pos->deadline.abs_value_us < now.abs_value_us) &&
413 (GNUNET_YES != pos->was_solicited)) 413 (GNUNET_YES != pos->was_solicited))
414 { 414 {
415 GNUNET_STATISTICS_update (GSC_stats, 415 GNUNET_STATISTICS_update (GSC_stats,
@@ -501,7 +501,7 @@ try_transmission (struct Session *session)
501 now = GNUNET_TIME_absolute_get (); 501 now = GNUNET_TIME_absolute_get ();
502 if ((msize == 0) || 502 if ((msize == 0) ||
503 ((msize < GNUNET_CONSTANTS_MAX_ENCRYPTED_MESSAGE_SIZE / 2) && 503 ((msize < GNUNET_CONSTANTS_MAX_ENCRYPTED_MESSAGE_SIZE / 2) &&
504 (min_deadline.abs_value > now.abs_value))) 504 (min_deadline.abs_value_us > now.abs_value_us)))
505 { 505 {
506 /* not enough ready yet, try to solicit more */ 506 /* not enough ready yet, try to solicit more */
507 solicit_messages (session); 507 solicit_messages (session);