Merge branch 'maint-0.4.2'

This commit is contained in:
teor 2019-10-20 22:09:00 +10:00
commit 042116e1fd
No known key found for this signature in database
GPG Key ID: 10FEAA0E7075672A

View File

@ -815,7 +815,7 @@ hibernate_soft_limit_reached(void)
* We want to stop accepting connections when ALL of the following are true:
* - We expect to use up the remaining bytes in under 3 hours
* - We have used up 95% of our bytes.
* - We have less than 500MBytes of bytes left.
* - We have less than 500MBytes left.
*/
uint64_t soft_limit = (uint64_t) (acct_max * SOFT_LIM_PCT);
if (acct_max > SOFT_LIM_BYTES && acct_max - SOFT_LIM_BYTES > soft_limit) {