diff options
Diffstat (limited to 'src/or/hibernate.c')
-rw-r--r-- | src/or/hibernate.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/or/hibernate.c b/src/or/hibernate.c index b41bf44ed9..5f1131da71 100644 --- a/src/or/hibernate.c +++ b/src/or/hibernate.c @@ -683,7 +683,8 @@ hibernate_hard_limit_reached(void) static int hibernate_soft_limit_reached(void) { - uint64_t soft_limit = DBL_TO_U64((get_options()->AccountingMax) * .95); + uint64_t soft_limit = DBL_TO_U64(U64_TO_DBL(get_options()->AccountingMax) + * .95); if (!soft_limit) return 0; return n_bytes_read_in_interval >= soft_limit |