Parcourir la source

How many seconds until != timestamp of that date

Sebastian Hahn il y a 15 ans
Parent
commit
bc081c254a
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  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) {
     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;