diff options
author | Matthias Wachs <wachs@net.in.tum.de> | 2013-08-21 16:12:11 +0000 |
---|---|---|
committer | Matthias Wachs <wachs@net.in.tum.de> | 2013-08-21 16:12:11 +0000 |
commit | 31dd147880c42f94b525fab0021b0eded6c8d24c (patch) | |
tree | 92db2a6e7ded50561c81e0e7313caf333da687c9 /src/ats/perf_ats.c | |
parent | a89c7a30d499bac96890929d745fad063eb707b2 (diff) | |
download | gnunet-31dd147880c42f94b525fab0021b0eded6c8d24c.tar.gz gnunet-31dd147880c42f94b525fab0021b0eded6c8d24c.zip |
fix for all masters
Diffstat (limited to 'src/ats/perf_ats.c')
-rw-r--r-- | src/ats/perf_ats.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/ats/perf_ats.c b/src/ats/perf_ats.c index 20e8a7e36..22aee31ce 100644 --- a/src/ats/perf_ats.c +++ b/src/ats/perf_ats.c | |||
@@ -238,13 +238,13 @@ ats_performance_info_cb (void *cls, | |||
238 | struct BenchmarkPeer *p = cls; | 238 | struct BenchmarkPeer *p = cls; |
239 | int c_a; | 239 | int c_a; |
240 | char *peer_id; | 240 | char *peer_id; |
241 | if (p != &bp_slaves[0]) | 241 | |
242 | return; /* print only master peer */ | ||
243 | peer_id = GNUNET_strdup (GNUNET_i2s (&p->id)); | 242 | peer_id = GNUNET_strdup (GNUNET_i2s (&p->id)); |
244 | for (c_a = 0; c_a < ats_count; c_a++) | 243 | for (c_a = 0; c_a < ats_count; c_a++) |
245 | { | 244 | { |
246 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, _("%s: %s %s %u\n"), | 245 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, _("%c %03u: %s %s %u\n"), |
247 | peer_id, | 246 | (GNUNET_YES == p->master) ? 'M' : 'S', |
247 | p->no, | ||
248 | GNUNET_i2s (&address->peer), | 248 | GNUNET_i2s (&address->peer), |
249 | GNUNET_ATS_print_property_type(ntohl(ats[c_a].type)), | 249 | GNUNET_ATS_print_property_type(ntohl(ats[c_a].type)), |
250 | ntohl(ats[c_a].value)); | 250 | ntohl(ats[c_a].value)); |