diff options
author | Christian Grothoff <christian@grothoff.org> | 2018-06-04 19:17:57 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2018-06-04 19:17:57 +0200 |
commit | b670eec1c0ea387ae31b52dd0d51c1422949a55c (patch) | |
tree | 5abaffddad0c258e6b166ada4ef3fb97ba51b5d1 /src/datacache/test_datacache.c | |
parent | 2b99bddcb6961cfda34087138acdda4b8b9ccb9f (diff) | |
parent | 41cbe10b783a0741c75566232886f262cd779fbb (diff) |
merge benchmark changes
Diffstat (limited to 'src/datacache/test_datacache.c')
-rw-r--r-- | src/datacache/test_datacache.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/datacache/test_datacache.c b/src/datacache/test_datacache.c index 79e6b6d749..c4d59c3cc6 100644 --- a/src/datacache/test_datacache.c +++ b/src/datacache/test_datacache.c @@ -87,7 +87,10 @@ run (void *cls, char *const *args, const char *cfgfile, { GNUNET_CRYPTO_hash (&k, sizeof (struct GNUNET_HashCode), &n); ASSERT (GNUNET_OK == - GNUNET_DATACACHE_put (h, &k, sizeof (struct GNUNET_HashCode), + GNUNET_DATACACHE_put (h, + &k, + GNUNET_YES, + sizeof (struct GNUNET_HashCode), (const char *) &n, 1 + i % 16, exp, 0, NULL)); k = n; @@ -103,7 +106,10 @@ run (void *cls, char *const *args, const char *cfgfile, memset (&k, 42, sizeof (struct GNUNET_HashCode)); GNUNET_CRYPTO_hash (&k, sizeof (struct GNUNET_HashCode), &n); ASSERT (GNUNET_OK == - GNUNET_DATACACHE_put (h, &k, sizeof (struct GNUNET_HashCode), + GNUNET_DATACACHE_put (h, + &k, + GNUNET_YES, + sizeof (struct GNUNET_HashCode), (const char *) &n, 792, GNUNET_TIME_UNIT_FOREVER_ABS, 0, NULL)); |