diff options
author | Christian Grothoff <christian@grothoff.org> | 2011-09-16 16:36:35 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2011-09-16 16:36:35 +0000 |
commit | aff0e6947e1e35a0f4b1d31055a1b904038c4cb5 (patch) | |
tree | df99c0ecbbc8c698c28329c225400235674b7987 /src | |
parent | 6d5e4a6ac6d8fa0ad986842bc82df3891602f4c1 (diff) | |
download | gnunet-aff0e6947e1e35a0f4b1d31055a1b904038c4cb5.tar.gz gnunet-aff0e6947e1e35a0f4b1d31055a1b904038c4cb5.zip |
longer exp, cleaner code
Diffstat (limited to 'src')
-rw-r--r-- | src/datacache/test_datacache_quota.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/datacache/test_datacache_quota.c b/src/datacache/test_datacache_quota.c index ad8681cec..6a05e61fb 100644 --- a/src/datacache/test_datacache_quota.c +++ b/src/datacache/test_datacache_quota.c | |||
@@ -64,8 +64,7 @@ run (void *cls, char *const *args, const char *cfgfile, | |||
64 | "Failed to initialize datacache. Database likely not setup, skipping test.\n"); | 64 | "Failed to initialize datacache. Database likely not setup, skipping test.\n"); |
65 | return; | 65 | return; |
66 | } | 66 | } |
67 | exp = GNUNET_TIME_absolute_get (); | 67 | exp = GNUNET_TIME_relative_to_absolute (GNUNET_TIME_UNIT_HOURS); |
68 | exp.abs_value += 20 * 60 * 1000; | ||
69 | memset (buf, 1, sizeof (buf)); | 68 | memset (buf, 1, sizeof (buf)); |
70 | memset (&k, 0, sizeof (GNUNET_HashCode)); | 69 | memset (&k, 0, sizeof (GNUNET_HashCode)); |
71 | for (i = 0; i < 10; i++) | 70 | for (i = 0; i < 10; i++) |