summaryrefslogtreecommitdiff
path: root/changes
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2010-09-03 14:29:17 -0400
committerNick Mathewson <nickm@torproject.org>2010-09-03 14:29:17 -0400
commit2920d8866767e46d6d6999d12fc6acd3547f22f1 (patch)
tree60fe1d67cfdad5b565cb0776bfe9e386e8b3464a /changes
parentd0acaac781f766a51c869f503af5a431748b55b9 (diff)
downloadtor-2920d8866767e46d6d6999d12fc6acd3547f22f1.tar.gz
tor-2920d8866767e46d6d6999d12fc6acd3547f22f1.zip
Base our expected bw accounting usage on time before soft limit
Previously, we were also considering the time spent in soft-hibernation. If this was a long time, we would wind up underestimating our bandwidth by a lot, and skewing our wakeup time towards the start of the accounting interval. This patch also makes us store a few more fields in the state file, including the time at which we entered soft hibernation. Fixes bug 1789. Bugfix on 0.0.9pre5.
Diffstat (limited to 'changes')
-rw-r--r--changes/bug17898
1 files changed, 8 insertions, 0 deletions
diff --git a/changes/bug1789 b/changes/bug1789
index 1f9e6b15b2..7090ea8f78 100644
--- a/changes/bug1789
+++ b/changes/bug1789
@@ -6,3 +6,11 @@
no more than 500MB/3 hours of traffic remaining before we enter
soft hibernation.
+ o Minor bugfixes:
+ - For bandwidth accounting, calculate our expected bandwidth rate
+ based on the time during which we were active and not in
+ soft-hibernation during the last interval. Previously, we were
+ also considering the time spent in soft-hibernation. If this
+ was a long time, we would wind up underestimating our bandwidth
+ by a lot, and skewing our wakeup time towards the start of the
+ accounting interval. Fixes bug 1789. Bugfix on 0.0.9pre5.