gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] r24934 - gnunet/src/mesh


From: gnunet
Subject: [GNUnet-SVN] r24934 - gnunet/src/mesh
Date: Tue, 13 Nov 2012 19:41:58 +0100

Author: bartpolot
Date: 2012-11-13 19:41:58 +0100 (Tue, 13 Nov 2012)
New Revision: 24934

Modified:
   gnunet/src/mesh/gnunet-service-mesh.c
Log:
- more mesh regex stats

Modified: gnunet/src/mesh/gnunet-service-mesh.c
===================================================================
--- gnunet/src/mesh/gnunet-service-mesh.c       2012-11-13 17:02:07 UTC (rev 
24933)
+++ gnunet/src/mesh/gnunet-service-mesh.c       2012-11-13 18:41:58 UTC (rev 
24934)
@@ -1772,6 +1772,10 @@
         size = sizeof (block);
         block.key = *key;
         block.id = my_full_id;
+        GNUNET_STATISTICS_update (stats, "# regex accepting blocks stored",
+                                  1, GNUNET_NO);
+        GNUNET_STATISTICS_update (stats, "# regex accepting block bytes 
stored",
+                                  sizeof (block), GNUNET_NO);
         (void)
         GNUNET_DHT_put(dht_handle, key,
                        dht_replication_level,
@@ -1830,6 +1834,11 @@
                    GNUNET_TIME_relative_to_absolute (GNUNET_TIME_UNIT_HOURS), 
/* FIXME: this should be an option */
                    app_announce_time,
                    NULL, NULL);
+    GNUNET_STATISTICS_update (stats, "# regex blocks stored",
+                              1, GNUNET_NO);
+    GNUNET_STATISTICS_update (stats, "# regex block bytes stored",
+                              size, GNUNET_NO);
+    
     GNUNET_free (block);
 }
 
@@ -6502,7 +6511,7 @@
   const struct MeshRegexAccept *block = data;
   struct MeshRegexSearchContext *ctx = cls;
   struct MeshRegexSearchInfo *info = ctx->info;
-  struct MeshPeerPath *p;
+//   struct MeshPeerPath *p;
   struct MeshPeerInfo *peer_info;
 
   GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Got regex results from DHT!\n");




reply via email to

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