diff options
author | Nick Mathewson <nickm@torproject.org> | 2010-11-22 12:30:33 -0500 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2010-11-22 12:32:29 -0500 |
commit | bea0a31c1c859a563f065d8b868570560abc5135 (patch) | |
tree | 3f47b0be5e10666cb719dee77c7ace802d0c11ad /src/or/rephist.h | |
parent | 80357abb11023ff285c251ee75b864e0a27d5809 (diff) | |
download | tor-bea0a31c1c859a563f065d8b868570560abc5135.tar.gz tor-bea0a31c1c859a563f065d8b868570560abc5135.zip |
Treat routers whose IPs have changed as having been down for MTBF/routerinfo
calculation purposes.
Diffstat (limited to 'src/or/rephist.h')
-rw-r--r-- | src/or/rephist.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/or/rephist.h b/src/or/rephist.h index 8f5a34dacf..1ddbac4dad 100644 --- a/src/or/rephist.h +++ b/src/or/rephist.h @@ -33,7 +33,8 @@ void rep_hist_update_state(or_state_t *state); int rep_hist_load_state(or_state_t *state, char **err); void rep_history_clean(time_t before); -void rep_hist_note_router_reachable(const char *id, time_t when); +void rep_hist_note_router_reachable(const char *id, const tor_addr_t *at_addr, + time_t when); void rep_hist_note_router_unreachable(const char *id, time_t when); int rep_hist_record_mtbf_data(time_t now, int missing_means_down); int rep_hist_load_mtbf_data(time_t now); |