aboutsummaryrefslogtreecommitdiff
path: root/src/fs
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2010-10-19 09:30:28 +0000
committerChristian Grothoff <christian@grothoff.org>2010-10-19 09:30:28 +0000
commit5ecf0c3e1df10fdce2dbae9efc75d59a13aefb58 (patch)
tree63ad4252f15962bcc95cca5380d681a55c38680a /src/fs
parent0ef092ad9150a7424d2fe48abc35579eb3608b4b (diff)
downloadgnunet-5ecf0c3e1df10fdce2dbae9efc75d59a13aefb58.tar.gz
gnunet-5ecf0c3e1df10fdce2dbae9efc75d59a13aefb58.zip
stats
Diffstat (limited to 'src/fs')
-rw-r--r--src/fs/fs_test_lib.c4
-rw-r--r--src/fs/gnunet-service-fs.c2
-rw-r--r--src/fs/perf_gnunet_service_fs_p2p.c5
3 files changed, 7 insertions, 4 deletions
diff --git a/src/fs/fs_test_lib.c b/src/fs/fs_test_lib.c
index 2f40b52bc..b0776e736 100644
--- a/src/fs/fs_test_lib.c
+++ b/src/fs/fs_test_lib.c
@@ -581,7 +581,9 @@ file_generator (void *cls,
581 uint8_t *cbuf = buf; 581 uint8_t *cbuf = buf;
582 int mod; 582 int mod;
583 583
584 for (pos=0;pos<max;pos++) 584 for (pos=0;pos<8;pos++)
585 cbuf[pos] = (uint8_t) (offset >> pos*8);
586 for (pos=8;pos<max;pos++)
585 { 587 {
586 mod = (255 - (offset / 1024 / 32)); 588 mod = (255 - (offset / 1024 / 32));
587 if (mod == 0) 589 if (mod == 0)
diff --git a/src/fs/gnunet-service-fs.c b/src/fs/gnunet-service-fs.c
index ad1fa4475..23ddf60c6 100644
--- a/src/fs/gnunet-service-fs.c
+++ b/src/fs/gnunet-service-fs.c
@@ -48,7 +48,7 @@
48 * implementation of GAP, but can be disabled for performance evaluation of 48 * implementation of GAP, but can be disabled for performance evaluation of
49 * the basic routing algorithm. 49 * the basic routing algorithm.
50 */ 50 */
51#define SUPPORT_DELAYS GNUNET_YES 51#define SUPPORT_DELAYS GNUNET_NO
52 52
53/** 53/**
54 * Maximum number of outgoing messages we queue per peer. 54 * Maximum number of outgoing messages we queue per peer.
diff --git a/src/fs/perf_gnunet_service_fs_p2p.c b/src/fs/perf_gnunet_service_fs_p2p.c
index 70e7cdb31..0b66150db 100644
--- a/src/fs/perf_gnunet_service_fs_p2p.c
+++ b/src/fs/perf_gnunet_service_fs_p2p.c
@@ -37,7 +37,7 @@
37/** 37/**
38 * How long until we give up on transmitting the message? 38 * How long until we give up on transmitting the message?
39 */ 39 */
40#define TIMEOUT GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_MINUTES, 3) 40#define TIMEOUT GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_MINUTES, 300)
41 41
42#define NUM_DAEMONS 2 42#define NUM_DAEMONS 2
43 43
@@ -92,6 +92,7 @@ static struct StatValues stats[] =
92 { "fs", "cummulative artificial delay introduced (ms)"}, 92 { "fs", "cummulative artificial delay introduced (ms)"},
93 { "core", "# bytes decrypted"}, 93 { "core", "# bytes decrypted"},
94 { "core", "# bytes encrypted"}, 94 { "core", "# bytes encrypted"},
95 { "core", "# transmissions delayed due to corking"},
95 { "transport", "# bytes received via TCP"}, 96 { "transport", "# bytes received via TCP"},
96 { "transport", "# bytes transmitted via TCP"}, 97 { "transport", "# bytes transmitted via TCP"},
97 { "datacache", "# bytes stored"}, 98 { "datacache", "# bytes stored"},
@@ -120,7 +121,7 @@ print_stat (void *cls,
120{ 121{
121 struct StatMaster *sm = cls; 122 struct StatMaster *sm = cls;
122 fprintf (stderr, 123 fprintf (stderr,
123 "Peer %2u: %12s/%50s = %4llu\n", 124 "Peer %2u: %12s/%50s = %12llu\n",
124 sm->daemon, 125 sm->daemon,
125 subsystem, 126 subsystem,
126 name, 127 name,