summaryrefslogtreecommitdiff
path: root/src/or/rendcommon.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/or/rendcommon.c')
-rw-r--r--src/or/rendcommon.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/or/rendcommon.c b/src/or/rendcommon.c
index f9a237bb23..ebc84eb2c0 100644
--- a/src/or/rendcommon.c
+++ b/src/or/rendcommon.c
@@ -399,7 +399,7 @@ rend_cache_store(const char *desc, size_t desc_len, int published)
}
/* report novel publication to statistics */
if (published && options->HSAuthorityRecordStats) {
- hs_usage_note_publish_total(query, time(NULL));
+ hs_usage_note_publish_total(query, now);
}
e = (rend_cache_entry_t*) strmap_get_lc(rend_cache, key);
if (e && e->parsed->timestamp > parsed->timestamp) {
@@ -420,7 +420,7 @@ rend_cache_store(const char *desc, size_t desc_len, int published)
strmap_set_lc(rend_cache, key, e);
/* report novel publication to statistics */
if (published && options->HSAuthorityRecordStats) {
- hs_usage_note_publish_novel(query, time(NULL));
+ hs_usage_note_publish_novel(query, now);
}
} else {
rend_service_descriptor_free(e->parsed);