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_remove_not_existing_record.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_remove_not_existing_record.c')
-rw-r--r-- | src/namestore/test_namestore_api_remove_not_existing_record.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/namestore/test_namestore_api_remove_not_existing_record.c b/src/namestore/test_namestore_api_remove_not_existing_record.c index a85bc8c05..6247ff346 100644 --- a/src/namestore/test_namestore_api_remove_not_existing_record.c +++ b/src/namestore/test_namestore_api_remove_not_existing_record.c | |||
@@ -158,7 +158,7 @@ create_record (unsigned int count) | |||
158 | rd = GNUNET_malloc (count * sizeof (struct GNUNET_NAMESTORE_RecordData)); | 158 | rd = GNUNET_malloc (count * sizeof (struct GNUNET_NAMESTORE_RecordData)); |
159 | for (c = 0; c < count; c++) | 159 | for (c = 0; c < count; c++) |
160 | { | 160 | { |
161 | rd[c].expiration_time = GNUNET_TIME_absolute_get().abs_value; | 161 | rd[c].expiration_time = GNUNET_TIME_absolute_get().abs_value_us; |
162 | rd[c].record_type = TEST_RECORD_TYPE; | 162 | rd[c].record_type = TEST_RECORD_TYPE; |
163 | rd[c].data_size = TEST_RECORD_DATALEN; | 163 | rd[c].data_size = TEST_RECORD_DATALEN; |
164 | rd[c].data = GNUNET_malloc(TEST_RECORD_DATALEN); | 164 | rd[c].data = GNUNET_malloc(TEST_RECORD_DATALEN); |
@@ -198,7 +198,7 @@ run (void *cls, | |||
198 | GNUNET_NAMESTORE_records_serialize(RECORDS, s_rd, rd_ser_len, rd_ser); | 198 | GNUNET_NAMESTORE_records_serialize(RECORDS, s_rd, rd_ser_len, rd_ser); |
199 | 199 | ||
200 | /* sign */ | 200 | /* sign */ |
201 | et.abs_value = s_rd[0].expiration_time; | 201 | et.abs_value_us = s_rd[0].expiration_time; |
202 | s_signature = GNUNET_NAMESTORE_create_signature(privkey, et, s_name, s_rd, RECORDS); | 202 | s_signature = GNUNET_NAMESTORE_create_signature(privkey, et, s_name, s_rd, RECORDS); |
203 | 203 | ||
204 | /* create random zone hash */ | 204 | /* create random zone hash */ |