aboutsummaryrefslogtreecommitdiff
path: root/src/peerinfo/perf_peerinfo_api.c
diff options
context:
space:
mode:
authorMatthias Wachs <wachs@net.in.tum.de>2013-04-05 15:03:21 +0000
committerMatthias Wachs <wachs@net.in.tum.de>2013-04-05 15:03:21 +0000
commit5d8749b903e4c0d038b71adf3804a6c3acaac54f (patch)
tree4ec62d0001747109b76a584a45ec7dbea7ea10d4 /src/peerinfo/perf_peerinfo_api.c
parentdaaddaf0ccad48256ee4e9f4ded6b01b40bc84aa (diff)
downloadgnunet-5d8749b903e4c0d038b71adf3804a6c3acaac54f.tar.gz
gnunet-5d8749b903e4c0d038b71adf3804a6c3acaac54f.zip
perf test
Diffstat (limited to 'src/peerinfo/perf_peerinfo_api.c')
-rwxr-xr-xsrc/peerinfo/perf_peerinfo_api.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/peerinfo/perf_peerinfo_api.c b/src/peerinfo/perf_peerinfo_api.c
index 41533bd3f..d55ccce2b 100755
--- a/src/peerinfo/perf_peerinfo_api.c
+++ b/src/peerinfo/perf_peerinfo_api.c
@@ -82,7 +82,7 @@ address_generator (void *cls, size_t max, void *buf)
82static void 82static void
83add_peer (size_t i) 83add_peer (size_t i)
84{ 84{
85 struct GNUNET_CRYPTO_RsaPublicKeyBinaryEncoded pkey; 85 struct GNUNET_CRYPTO_EccPublicKeyBinaryEncoded pkey;
86 struct GNUNET_HELLO_Message *h2; 86 struct GNUNET_HELLO_Message *h2;
87 87
88 memset (&pkey, i, sizeof (pkey)); 88 memset (&pkey, i, sizeof (pkey));
@@ -120,7 +120,7 @@ run (void *cls,
120 { 120 {
121 add_peer (i); 121 add_peer (i);
122 ic[i] = 122 ic[i] =
123 GNUNET_PEERINFO_iterate (h, NULL, 123 GNUNET_PEERINFO_iterate (h, GNUNET_YES, NULL,
124 GNUNET_TIME_relative_multiply 124 GNUNET_TIME_relative_multiply
125 (GNUNET_TIME_UNIT_SECONDS, 30), &process, cls); 125 (GNUNET_TIME_UNIT_SECONDS, 30), &process, cls);
126 } 126 }