aboutsummaryrefslogtreecommitdiff
path: root/src/or/hibernate.c
diff options
context:
space:
mode:
authorSebastian Hahn <sebastian@torproject.org>2010-09-15 21:13:17 +0200
committerSebastian Hahn <sebastian@torproject.org>2010-09-15 21:13:17 +0200
commitbc081c254afaac4203037653850befb0b114171d (patch)
treedb4f3573782da0158ca015607e48f9caca88a143 /src/or/hibernate.c
parent2920d8866767e46d6d6999d12fc6acd3547f22f1 (diff)
downloadtor-bc081c254afaac4203037653850befb0b114171d.tar.gz
tor-bc081c254afaac4203037653850befb0b114171d.zip
How many seconds until != timestamp of that date
Diffstat (limited to 'src/or/hibernate.c')
-rw-r--r--src/or/hibernate.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/hibernate.c b/src/or/hibernate.c
index 5f14eb23c7..8f72c69824 100644
--- a/src/or/hibernate.c
+++ b/src/or/hibernate.c
@@ -634,7 +634,7 @@ read_bandwidth_usage(void)
if (state->AccountingSoftLimitHitAt > interval_start_time) {
soft_limit_hit_at = state->AccountingSoftLimitHitAt;
n_bytes_at_soft_limit = state->AccountingBytesAtSoftLimit;
- n_seconds_to_hit_soft_limit = state->AccountingSoftLimitHitAt;
+ n_seconds_to_hit_soft_limit = state->AccountingSecondsToReachSoftLimit;
} else {
soft_limit_hit_at = 0;
n_bytes_at_soft_limit = 0;