Backport to 0.2.0.x: Apply rovv's fix for bug 824.

svn:r16976
This commit is contained in:
Nick Mathewson
2008-09-26 15:31:21 +00:00
parent 386b7d594b
commit efea050fff
2 changed files with 6 additions and 1 deletions
+1 -1
View File
@@ -1718,7 +1718,7 @@ connection_bucket_refill(int seconds_elapsed, time_t now)
tor_assert(seconds_elapsed >= 0);
write_buckets_empty_last_second =
global_relayed_write_bucket == 0 || global_write_bucket == 0;
global_relayed_write_bucket <= 0 || global_write_bucket <= 0;
/* refill the global buckets */
connection_bucket_refill_helper(&global_read_bucket,