summaryrefslogtreecommitdiff
path: root/src/feature/dirauth/bwauth.c
diff options
context:
space:
mode:
authorjuga0 <juga@riseup.net>2018-11-06 14:56:05 +0000
committerjuga0 <juga@riseup.net>2019-02-13 12:26:00 +0000
commit28490fa23edc11f0b22ef4365be97eb3fb88768d (patch)
treeab9d63169a8005c9fb6ca817b30e350f0d16412e /src/feature/dirauth/bwauth.c
parentfc3e90a7b64714f30c19572900523078e8e7c0d6 (diff)
downloadtor-28490fa23edc11f0b22ef4365be97eb3fb88768d.tar.gz
tor-28490fa23edc11f0b22ef4365be97eb3fb88768d.zip
test: Add test to get the digest of a bw file
Diffstat (limited to 'src/feature/dirauth/bwauth.c')
-rw-r--r--src/feature/dirauth/bwauth.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/feature/dirauth/bwauth.c b/src/feature/dirauth/bwauth.c
index 1929c14384..7d7dea4dfa 100644
--- a/src/feature/dirauth/bwauth.c
+++ b/src/feature/dirauth/bwauth.c
@@ -254,7 +254,7 @@ dirserv_read_measured_bandwidths(const char *from_file,
goto continue_digest;
}
- now = time(NULL);
+ now = approx_time();
if ((now - file_time) > MAX_MEASUREMENT_AGE) {
log_warn(LD_DIRSERV, "Bandwidth measurement file stale. Age: %u",
(unsigned)(time(NULL) - file_time));