Commit bfa78b3d authored by Roger Dingledine's avatar Roger Dingledine
Browse files

actually, do the bandwidth test anyway, if you've been up at

least 6 hours at your previous address.


svn:r8403
parent a51ec444
......@@ -483,14 +483,17 @@ router_dirport_found_reachable(void)
}
}
#define UPTIME_CUTOFF_FOR_NEW_BANDWIDTH_TEST (6*60*60)
/** Our router has just moved to a new IP. Reset stats. */
void
server_has_changed_ip(void)
{
if (stats_n_seconds_working > UPTIME_CUTOFF_FOR_NEW_BANDWIDTH_TEST)
reset_bandwidth_test();
stats_n_seconds_working = 0;
can_reach_or_port = 0;
can_reach_dir_port = 0;
// reset_bandwidth_test();
mark_my_descriptor_dirty();
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment