aboutsummaryrefslogtreecommitdiff
path: root/src/namestore/test_namestore_api_remove.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2013-08-11 21:21:56 +0000
committerChristian Grothoff <christian@grothoff.org>2013-08-11 21:21:56 +0000
commit3d7fefedc9ba60bd8e8448efe8b628446d958536 (patch)
tree61ce41a52cd6e7232cead77818ef265993b2427e /src/namestore/test_namestore_api_remove.c
parent4a0398474db197abed243a123fb971fbeeffab4b (diff)
downloadgnunet-3d7fefedc9ba60bd8e8448efe8b628446d958536.tar.gz
gnunet-3d7fefedc9ba60bd8e8448efe8b628446d958536.zip
changing time measurement from milliseconds to microseconds
Diffstat (limited to 'src/namestore/test_namestore_api_remove.c')
-rw-r--r--src/namestore/test_namestore_api_remove.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/namestore/test_namestore_api_remove.c b/src/namestore/test_namestore_api_remove.c
index f278b30db..19721f5a1 100644
--- a/src/namestore/test_namestore_api_remove.c
+++ b/src/namestore/test_namestore_api_remove.c
@@ -203,14 +203,14 @@ create_record (unsigned int count)
203 struct GNUNET_NAMESTORE_RecordData * rd; 203 struct GNUNET_NAMESTORE_RecordData * rd;
204 204
205 rd = GNUNET_malloc (count * sizeof (struct GNUNET_NAMESTORE_RecordData)); 205 rd = GNUNET_malloc (count * sizeof (struct GNUNET_NAMESTORE_RecordData));
206 rd[0].expiration_time = GNUNET_TIME_relative_to_absolute (GNUNET_TIME_UNIT_HOURS).abs_value; 206 rd[0].expiration_time = GNUNET_TIME_relative_to_absolute (GNUNET_TIME_UNIT_HOURS).abs_value_us;
207 rd[0].record_type = 0; 207 rd[0].record_type = 0;
208 rd[0].data_size = TEST_REMOVE_RECORD_DATALEN; 208 rd[0].data_size = TEST_REMOVE_RECORD_DATALEN;
209 rd[0].data = GNUNET_malloc(TEST_REMOVE_RECORD_DATALEN); 209 rd[0].data = GNUNET_malloc(TEST_REMOVE_RECORD_DATALEN);
210 memset ((char *) rd[0].data, TEST_RECORD_DATA, TEST_RECORD_DATALEN); 210 memset ((char *) rd[0].data, TEST_RECORD_DATA, TEST_RECORD_DATALEN);
211 for (c = 1; c < count; c++) 211 for (c = 1; c < count; c++)
212 { 212 {
213 rd[c].expiration_time = GNUNET_TIME_relative_to_absolute (GNUNET_TIME_UNIT_HOURS).abs_value; 213 rd[c].expiration_time = GNUNET_TIME_relative_to_absolute (GNUNET_TIME_UNIT_HOURS).abs_value_us;
214 rd[c].record_type = TEST_RECORD_TYPE; 214 rd[c].record_type = TEST_RECORD_TYPE;
215 rd[c].data_size = TEST_RECORD_DATALEN; 215 rd[c].data_size = TEST_RECORD_DATALEN;
216 rd[c].data = GNUNET_malloc(TEST_RECORD_DATALEN); 216 rd[c].data = GNUNET_malloc(TEST_RECORD_DATALEN);
@@ -250,7 +250,7 @@ run (void *cls,
250 GNUNET_NAMESTORE_records_serialize(RECORDS, s_rd, rd_ser_len, rd_ser); 250 GNUNET_NAMESTORE_records_serialize(RECORDS, s_rd, rd_ser_len, rd_ser);
251 251
252 /* sign */ 252 /* sign */
253 et.abs_value = s_rd[0].expiration_time; 253 et.abs_value_us = s_rd[0].expiration_time;
254 s_signature = GNUNET_NAMESTORE_create_signature(privkey, et, s_name, s_rd, RECORDS); 254 s_signature = GNUNET_NAMESTORE_create_signature(privkey, et, s_name, s_rd, RECORDS);
255 255
256 /* create random zone hash */ 256 /* create random zone hash */