[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r14066 - gnunet/src/core
From: |
gnunet |
Subject: |
[GNUnet-SVN] r14066 - gnunet/src/core |
Date: |
Thu, 23 Dec 2010 23:07:17 +0100 |
Author: grothoff
Date: 2010-12-23 23:07:17 +0100 (Thu, 23 Dec 2010)
New Revision: 14066
Modified:
gnunet/src/core/gnunet-service-core.c
Log:
better stats
Modified: gnunet/src/core/gnunet-service-core.c
===================================================================
--- gnunet/src/core/gnunet-service-core.c 2010-12-23 22:01:53 UTC (rev
14065)
+++ gnunet/src/core/gnunet-service-core.c 2010-12-23 22:07:17 UTC (rev
14066)
@@ -2944,10 +2944,16 @@
"Core received `%s' request for `%4s', already connected!\n",
"REQUEST_CONNECT",
GNUNET_i2s (&cm->peer));
- GNUNET_STATISTICS_update (stats,
- gettext_noop ("# connection requests ignored
(already connected)"),
- 1,
- GNUNET_NO);
+ if (GNUNET_YES == n->is_connected)
+ GNUNET_STATISTICS_update (stats,
+ gettext_noop ("# connection requests ignored
(already connected)"),
+ 1,
+ GNUNET_NO);
+ else
+ GNUNET_STATISTICS_update (stats,
+ gettext_noop ("# connection requests ignored
(already trying)"),
+ 1,
+ GNUNET_NO);
return; /* already connected, or at least trying */
}
GNUNET_STATISTICS_update (stats,
@@ -4170,7 +4176,10 @@
GNUNET_break_op (0);
return;
}
- GNUNET_STATISTICS_update (stats, gettext_noop ("# session keys
received"), 1, GNUNET_NO);
+ GNUNET_STATISTICS_update (stats,
+ gettext_noop ("# session keys received"),
+ 1,
+ GNUNET_NO);
handle_set_key (n,
(const struct SetKeyMessage *) message,
ats, ats_count);
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r14066 - gnunet/src/core,
gnunet <=