From 28490fa23edc11f0b22ef4365be97eb3fb88768d Mon Sep 17 00:00:00 2001 From: juga0 Date: Tue, 6 Nov 2018 14:56:05 +0000 Subject: test: Add test to get the digest of a bw file --- src/feature/dirauth/bwauth.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/feature') 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)); -- cgit v1.2.3-54-g00ecf