[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r10510 - gnunet/src/core
From: |
gnunet |
Subject: |
[GNUnet-SVN] r10510 - gnunet/src/core |
Date: |
Mon, 8 Mar 2010 14:43:36 +0100 |
Author: grothoff
Date: 2010-03-08 14:43:36 +0100 (Mon, 08 Mar 2010)
New Revision: 10510
Modified:
gnunet/src/core/gnunet-service-core.c
Log:
nicer logging
Modified: gnunet/src/core/gnunet-service-core.c
===================================================================
--- gnunet/src/core/gnunet-service-core.c 2010-03-08 13:14:32 UTC (rev
10509)
+++ gnunet/src/core/gnunet-service-core.c 2010-03-08 13:43:36 UTC (rev
10510)
@@ -1376,8 +1376,9 @@
uint64_t avail;
struct GNUNET_TIME_Relative slack; /* how long could we wait before
missing deadlines? */
size_t off;
+ uint64_t tsize;
+ unsigned int queue_size;
int discard_low_prio;
- unsigned int queue_size;
GNUNET_assert (NULL != n->messages);
now = GNUNET_TIME_absolute_get ();
@@ -1387,10 +1388,12 @@
priority from consideration for scheduling at the
end of the loop? */
queue_size = 0;
+ tsize = 0;
pos = n->messages;
while (pos != NULL)
{
queue_size++;
+ tsize += pos->size;
pos = pos->next;
}
discard_low_prio = GNUNET_YES;
@@ -1518,8 +1521,10 @@
}
#if DEBUG_CORE
GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
- "Selected %u bytes of plaintext messages for transmission to
`%4s'.\n",
- off, GNUNET_i2s (&n->peer));
+ "Selected %u/%u bytes of %u/%u plaintext messages for
transmission to `%4s'.\n",
+ off, tsize,
+ queue_size, MAX_PEER_QUEUE_SIZE,
+ GNUNET_i2s (&n->peer));
#endif
return off;
}
@@ -2036,8 +2041,9 @@
#if DEBUG_CORE
GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
- "Adding transmission request for `%4s' to queue\n",
- GNUNET_i2s (&sm->peer));
+ "Adding transmission request for `%4s' of size %u to queue\n",
+ GNUNET_i2s (&sm->peer),
+ msize);
#endif
e = GNUNET_malloc (sizeof (struct MessageEntry) + msize);
e->deadline = GNUNET_TIME_absolute_ntoh (sm->deadline);
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r10510 - gnunet/src/core,
gnunet <=