From 3d7fefedc9ba60bd8e8448efe8b628446d958536 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Sun, 11 Aug 2013 21:21:56 +0000 Subject: changing time measurement from milliseconds to microseconds --- src/dns/dnsparser.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/dns/dnsparser.c') diff --git a/src/dns/dnsparser.c b/src/dns/dnsparser.c index 6ddfebb11..18ef4c219 100644 --- a/src/dns/dnsparser.c +++ b/src/dns/dnsparser.c @@ -891,7 +891,7 @@ add_record (char *dst, } rl.type = htons (record->type); rl.class = htons (record->class); - rl.ttl = htonl (GNUNET_TIME_absolute_get_remaining (record->expiration_time).rel_value / 1000); /* in seconds */ + rl.ttl = htonl (GNUNET_TIME_absolute_get_remaining (record->expiration_time).rel_value_us / 1000LL / 1000LL); /* in seconds */ rl.data_len = htons ((uint16_t) (pos - (*off + sizeof (struct record_line)))); memcpy (&dst[*off], &rl, sizeof (struct record_line)); *off = pos; -- cgit v1.2.3