Fix non-live condition checks.
commit9a77743b7b2e657cb8d9fd413d53cb9e3b8e00ca
authorMike Perry <mikeperry-git@fscked.org>
Wed, 29 Sep 2010 18:49:31 +0000 (29 11:49 -0700)
committerMike Perry <mikeperry-git@fscked.org>
Wed, 29 Sep 2010 18:49:31 +0000 (29 11:49 -0700)
tree270ff5c6d5c9022ca0c756b442ef3819e5d1e531
parent4caf39f1c8db6acc25f84df024073d43c04c8645
Fix non-live condition checks.

Rechecking the timeout condition was foolish, because it is checked on the
same codepath. It was also wrong, because we didn't round.

Also, the liveness check itself should be <, and not <=, because we only have
1 second resolution.
src/or/circuitbuild.c
src/or/circuituse.c