gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] r10616 - gnunet/src/core


From: gnunet
Subject: [GNUnet-SVN] r10616 - gnunet/src/core
Date: Tue, 16 Mar 2010 13:10:46 +0100

Author: grothoff
Date: 2010-03-16 13:10:46 +0100 (Tue, 16 Mar 2010)
New Revision: 10616

Modified:
   gnunet/src/core/gnunet-service-core.c
Log:
stats

Modified: gnunet/src/core/gnunet-service-core.c
===================================================================
--- gnunet/src/core/gnunet-service-core.c       2010-03-16 11:56:00 UTC (rev 
10615)
+++ gnunet/src/core/gnunet-service-core.c       2010-03-16 12:10:46 UTC (rev 
10616)
@@ -2514,6 +2514,10 @@
       GNUNET_break (0);
       break;
     }
+  GNUNET_STATISTICS_update (stats, 
+                           gettext_noop ("# SETKEY and PING messages 
created"), 
+                           1, 
+                           GNUNET_NO);
 #if DEBUG_CORE
   GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
               "Have %llu ms left for `%s' transmission.\n",
@@ -2626,7 +2630,10 @@
               "Target of `%s' request is `%4s'.\n",
               "PING", GNUNET_i2s (&t.target));
 #endif
-  GNUNET_STATISTICS_update (stats, gettext_noop ("# PING messages decrypted"), 
1, GNUNET_NO);
+  GNUNET_STATISTICS_update (stats,
+                           gettext_noop ("# PING messages decrypted"), 
+                           1,
+                           GNUNET_NO);
   if (0 != memcmp (&t.target,
                    &my_identity, sizeof (struct GNUNET_PeerIdentity)))
     {
@@ -2655,6 +2662,10 @@
               &tp->challenge,
               sizeof (struct PongMessage) -
               sizeof (struct GNUNET_MessageHeader));
+  GNUNET_STATISTICS_update (stats, 
+                           gettext_noop ("# PONG messages created"), 
+                           1, 
+                           GNUNET_NO);
 #if DEBUG_CORE
   GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
               "Encrypting `%s' with challenge %u using key %u\n", "PONG",
@@ -2690,7 +2701,10 @@
                   &t.challenge,
                   sizeof (struct PongMessage) -
                   sizeof (struct GNUNET_MessageHeader)))
-    return;
+    {
+      GNUNET_break_op (0);
+      return;
+    }
   GNUNET_STATISTICS_update (stats, 
                            gettext_noop ("# PONG messages decrypted"), 
                            1, 
@@ -2890,7 +2904,10 @@
       GNUNET_break_op (0);
       return;
     }
-
+  GNUNET_STATISTICS_update (stats, 
+                           gettext_noop ("# SETKEY messages decrypted"), 
+                           1, 
+                           GNUNET_NO);
   n->decrypt_key = k;
   if (n->decrypt_key_created.value != t.value)
     {





reply via email to

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