diff options
author | Roger Dingledine <arma@torproject.org> | 2004-11-15 09:22:01 +0000 |
---|---|---|
committer | Roger Dingledine <arma@torproject.org> | 2004-11-15 09:22:01 +0000 |
commit | 50c15943a28934a7977908ed91c27b7644d5fd92 (patch) | |
tree | a5a06be2cce6e54c6c39823337a4aedbfaeeab92 | |
parent | 4b76fe8036b700d5101b356273d21af7ecc33f8b (diff) | |
download | tor-50c15943a28934a7977908ed91c27b7644d5fd92.tar.gz tor-50c15943a28934a7977908ed91c27b7644d5fd92.zip |
move second stat to a cleaner place
svn:r2890
-rw-r--r-- | src/or/routerlist.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/routerlist.c b/src/or/routerlist.c index a7fa3e0669..bb29e3917a 100644 --- a/src/or/routerlist.c +++ b/src/or/routerlist.c @@ -53,9 +53,9 @@ int router_reload_router_list(void) tor_snprintf(filename,sizeof(filename),"%s/cached-directory", get_options()->DataDirectory); - stat(filename, &st); /* ignore return value; if s is true below, it worked */ s = read_file_to_str(filename,0); if (s) { + stat(filename, &st); /* if s is true, stat probably worked */ log_fn(LOG_INFO, "Loading cached directory from %s", filename); is_recent = st.st_mtime > time(NULL) - 60*15; if (router_load_routerlist_from_directory(s, NULL, is_recent) < 0) { |