diff options
author | Bart Polot <bart@net.in.tum.de> | 2013-03-15 11:46:05 +0000 |
---|---|---|
committer | Bart Polot <bart@net.in.tum.de> | 2013-03-15 11:46:05 +0000 |
commit | 82fcbb443c9af2bd1ae869960e870cc10d91219c (patch) | |
tree | 3d0e1e43e10a7d8df617f7613f8a6fd4967aa399 /src/regex | |
parent | 6bbba0a49fd9be9d98620592ff88f977d26dc47b (diff) | |
download | gnunet-82fcbb443c9af2bd1ae869960e870cc10d91219c.tar.gz gnunet-82fcbb443c9af2bd1ae869960e870cc10d91219c.zip |
- fix
Diffstat (limited to 'src/regex')
-rw-r--r-- | src/regex/gnunet-regex-profiler.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/regex/gnunet-regex-profiler.c b/src/regex/gnunet-regex-profiler.c index 029ea5b94..d5532cfe5 100644 --- a/src/regex/gnunet-regex-profiler.c +++ b/src/regex/gnunet-regex-profiler.c | |||
@@ -1071,6 +1071,7 @@ arm_start_cb (void *cls, struct GNUNET_ARM_Handle *arm, | |||
1071 | enum GNUNET_ARM_Result result) | 1071 | enum GNUNET_ARM_Result result) |
1072 | { | 1072 | { |
1073 | struct RegexPeer *peer = (struct RegexPeer *) cls; | 1073 | struct RegexPeer *peer = (struct RegexPeer *) cls; |
1074 | static unsigned int arm_peer_cnt; | ||
1074 | unsigned int next_p; | 1075 | unsigned int next_p; |
1075 | 1076 | ||
1076 | if (rs != GNUNET_ARM_REQUEST_SENT_OK) | 1077 | if (rs != GNUNET_ARM_REQUEST_SENT_OK) |
@@ -1093,9 +1094,9 @@ arm_start_cb (void *cls, struct GNUNET_ARM_Handle *arm, | |||
1093 | case GNUNET_ARM_RESULT_STARTING: | 1094 | case GNUNET_ARM_RESULT_STARTING: |
1094 | GNUNET_SCHEDULER_add_now (&arm_op_done, peer); | 1095 | GNUNET_SCHEDULER_add_now (&arm_op_done, peer); |
1095 | 1096 | ||
1096 | if (peer_cnt < (num_peers - 1)) | 1097 | if (arm_peer_cnt < (num_peers - 1)) |
1097 | { | 1098 | { |
1098 | next_p = (++peer_cnt % num_peers); | 1099 | next_p = (++arm_peer_cnt % num_peers); |
1099 | GNUNET_SCHEDULER_add_delayed (GNUNET_TIME_relative_multiply( | 1100 | GNUNET_SCHEDULER_add_delayed (GNUNET_TIME_relative_multiply( |
1100 | GNUNET_TIME_UNIT_MILLISECONDS, | 1101 | GNUNET_TIME_UNIT_MILLISECONDS, |
1101 | 1000), | 1102 | 1000), |