diff options
author | Christian Grothoff <christian@grothoff.org> | 2013-08-11 21:21:56 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2013-08-11 21:21:56 +0000 |
commit | 3d7fefedc9ba60bd8e8448efe8b628446d958536 (patch) | |
tree | 61ce41a52cd6e7232cead77818ef265993b2427e /src/namestore/test_namestore_api_lookup.c | |
parent | 4a0398474db197abed243a123fb971fbeeffab4b (diff) | |
download | gnunet-3d7fefedc9ba60bd8e8448efe8b628446d958536.tar.gz gnunet-3d7fefedc9ba60bd8e8448efe8b628446d958536.zip |
changing time measurement from milliseconds to microseconds
Diffstat (limited to 'src/namestore/test_namestore_api_lookup.c')
-rw-r--r-- | src/namestore/test_namestore_api_lookup.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/namestore/test_namestore_api_lookup.c b/src/namestore/test_namestore_api_lookup.c index d8f6fe056..24ef4c74e 100644 --- a/src/namestore/test_namestore_api_lookup.c +++ b/src/namestore/test_namestore_api_lookup.c | |||
@@ -200,7 +200,7 @@ create_record (unsigned int count) | |||
200 | rd = GNUNET_malloc (count * sizeof (struct GNUNET_NAMESTORE_RecordData)); | 200 | rd = GNUNET_malloc (count * sizeof (struct GNUNET_NAMESTORE_RecordData)); |
201 | for (c = 0; c < count; c++) | 201 | for (c = 0; c < count; c++) |
202 | { | 202 | { |
203 | rd[c].expiration_time = GNUNET_TIME_relative_to_absolute (GNUNET_TIME_UNIT_HOURS).abs_value; | 203 | rd[c].expiration_time = GNUNET_TIME_relative_to_absolute (GNUNET_TIME_UNIT_HOURS).abs_value_us; |
204 | rd[c].record_type = TEST_RECORD_TYPE; | 204 | rd[c].record_type = TEST_RECORD_TYPE; |
205 | rd[c].data_size = TEST_RECORD_DATALEN; | 205 | rd[c].data_size = TEST_RECORD_DATALEN; |
206 | rd[c].data = GNUNET_malloc(TEST_RECORD_DATALEN); | 206 | rd[c].data = GNUNET_malloc(TEST_RECORD_DATALEN); |
@@ -237,7 +237,7 @@ run (void *cls, | |||
237 | GNUNET_NAMESTORE_records_serialize(RECORDS, s_rd, rd_ser_len, rd_ser); | 237 | GNUNET_NAMESTORE_records_serialize(RECORDS, s_rd, rd_ser_len, rd_ser); |
238 | 238 | ||
239 | /* sign */ | 239 | /* sign */ |
240 | et.abs_value = s_rd[0].expiration_time; | 240 | et.abs_value_us = s_rd[0].expiration_time; |
241 | s_signature = GNUNET_NAMESTORE_create_signature (privkey, et, s_name, | 241 | s_signature = GNUNET_NAMESTORE_create_signature (privkey, et, s_name, |
242 | s_rd, RECORDS); | 242 | s_rd, RECORDS); |
243 | 243 | ||