gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] r13862 - gnunet/src/transport


From: gnunet
Subject: [GNUnet-SVN] r13862 - gnunet/src/transport
Date: Wed, 1 Dec 2010 20:08:28 +0100

Author: grothoff
Date: 2010-12-01 20:08:28 +0100 (Wed, 01 Dec 2010)
New Revision: 13862

Modified:
   gnunet/src/transport/transport_api.c
Log:
minor style fixes

Modified: gnunet/src/transport/transport_api.c
===================================================================
--- gnunet/src/transport/transport_api.c        2010-12-01 19:07:03 UTC (rev 
13861)
+++ gnunet/src/transport/transport_api.c        2010-12-01 19:08:28 UTC (rev 
13862)
@@ -456,6 +456,7 @@
   struct GNUNET_TIME_Relative duration;
   GNUNET_CONNECTION_TransmitReadyNotify notify;
   struct GNUNET_TRANSPORT_TransmitHandle *th;
+  struct GNUNET_TIME_Absolute duration_abs;
 
   if (n->transmit_stage != TS_QUEUED)
     return GNUNET_YES; /* not eligible, keep iterating */
@@ -467,7 +468,7 @@
   /* check outgoing quota */
   duration = GNUNET_BANDWIDTH_tracker_get_delay (&n->out_tracker,
                                                  th->notify_size - sizeof 
(struct OutboundMessage));
-  struct GNUNET_TIME_Absolute duration_abs = GNUNET_TIME_relative_to_absolute 
(duration);
+  duration_abs = GNUNET_TIME_relative_to_absolute (duration);
   if (th->timeout.abs_value < duration_abs.abs_value)
     {
       /* signal timeout! */
@@ -498,7 +499,7 @@
                   (unsigned int) n->out_tracker.available_bytes_per_s__,
                   (unsigned int) th->notify_size - sizeof (struct 
OutboundMessage),
                   GNUNET_i2s (&n->id),
-                  duration.rel_value);
+                  (unsigned long long) duration.rel_value);
 #endif
       try_transmit_ctx->retry_time = GNUNET_TIME_relative_min 
(try_transmit_ctx->retry_time,
                                                                duration);
@@ -517,6 +518,7 @@
   return GNUNET_YES;
 }
 
+
 /**
  * Figure out which transmission to a peer can be done right now.
  * If none can, schedule a task to call 'schedule_transmission'
@@ -530,7 +532,6 @@
 static struct GNUNET_TRANSPORT_TransmitHandle *
 schedule_peer_transmission (struct GNUNET_TRANSPORT_Handle *h)
 {
-
   struct TryTransmitContext try_transmit_ctx;
 
   if (h->quota_task != GNUNET_SCHEDULER_NO_TASK)
@@ -540,8 +541,9 @@
     }
   memset(&try_transmit_ctx, 0, sizeof(struct TryTransmitContext));
   try_transmit_ctx.retry_time = GNUNET_TIME_UNIT_FOREVER_REL;
-  GNUNET_CONTAINER_multihashmap_iterate(h->neighbours, 
&try_schedule_transmission, &try_transmit_ctx);
-
+  GNUNET_CONTAINER_multihashmap_iterate(h->neighbours, 
+                                       &try_schedule_transmission, 
+                                       &try_transmit_ctx);
   if (try_transmit_ctx.ret == NULL)
     h->quota_task = GNUNET_SCHEDULER_add_delayed (try_transmit_ctx.retry_time,
                                                  &quota_transmit_ready,




reply via email to

[Prev in Thread] Current Thread [Next in Thread]