瀏覽代碼

How many seconds until != timestamp of that date

Sebastian Hahn 15 年之前
父節點
當前提交
bc081c254a
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/or/hibernate.c

+ 1 - 1
src/or/hibernate.c

@@ -634,7 +634,7 @@ read_bandwidth_usage(void)
   if (state->AccountingSoftLimitHitAt > interval_start_time) {
   if (state->AccountingSoftLimitHitAt > interval_start_time) {
     soft_limit_hit_at =  state->AccountingSoftLimitHitAt;
     soft_limit_hit_at =  state->AccountingSoftLimitHitAt;
     n_bytes_at_soft_limit = state->AccountingBytesAtSoftLimit;
     n_bytes_at_soft_limit = state->AccountingBytesAtSoftLimit;
-    n_seconds_to_hit_soft_limit = state->AccountingSoftLimitHitAt;
+    n_seconds_to_hit_soft_limit = state->AccountingSecondsToReachSoftLimit;
   } else {
   } else {
     soft_limit_hit_at = 0;
     soft_limit_hit_at = 0;
     n_bytes_at_soft_limit = 0;
     n_bytes_at_soft_limit = 0;