stats
authorChristian Grothoff <christian@grothoff.org>
Tue, 19 Oct 2010 09:30:28 +0000 (09:30 +0000)
committerChristian Grothoff <christian@grothoff.org>
Tue, 19 Oct 2010 09:30:28 +0000 (09:30 +0000)
src/fs/fs_test_lib.c
src/fs/gnunet-service-fs.c
src/fs/perf_gnunet_service_fs_p2p.c

index 2f40b52bca44cc914078a3a53b3208fbafd55f2f..b0776e73602f95db1d73dd19f9bf8edd039213c9 100644 (file)
@@ -581,7 +581,9 @@ file_generator (void *cls,
   uint8_t *cbuf = buf;
   int mod;
 
-  for (pos=0;pos<max;pos++)
+  for (pos=0;pos<8;pos++)
+    cbuf[pos] = (uint8_t) (offset >> pos*8);
+  for (pos=8;pos<max;pos++)
     {
       mod = (255 - (offset / 1024 / 32));
       if (mod == 0)
index ad1fa44758623834d207cc1f8efa5f6564ce2cc1..23ddf60c64a045870dd4469a755d7f9158e632fd 100644 (file)
@@ -48,7 +48,7 @@
  * implementation of GAP, but can be disabled for performance evaluation of
  * the basic routing algorithm.
  */
-#define SUPPORT_DELAYS GNUNET_YES
+#define SUPPORT_DELAYS GNUNET_NO
 
 /**
  * Maximum number of outgoing messages we queue per peer.
index 70e7cdb31e265e39daa71d9c4aaf191b828496fd..0b66150dba2ecd2ba7ecea80bfebdf02753467f8 100644 (file)
@@ -37,7 +37,7 @@
 /**
  * How long until we give up on transmitting the message?
  */
-#define TIMEOUT GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_MINUTES, 3)
+#define TIMEOUT GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_MINUTES, 300)
 
 #define NUM_DAEMONS 2
 
@@ -92,6 +92,7 @@ static struct StatValues stats[] =
     { "fs", "cummulative artificial delay introduced (ms)"},
     { "core", "# bytes decrypted"},
     { "core", "# bytes encrypted"},
+    { "core", "# transmissions delayed due to corking"},
     { "transport", "# bytes received via TCP"},
     { "transport", "# bytes transmitted via TCP"},
     { "datacache", "# bytes stored"},
@@ -120,7 +121,7 @@ print_stat (void *cls,
 {
   struct StatMaster *sm = cls;
   fprintf (stderr,
-          "Peer %2u: %12s/%50s = %4llu\n",
+          "Peer %2u: %12s/%50s = %12llu\n",
           sm->daemon,
           subsystem,
           name,