mirror of
https://github.com/uqbar-dao/nectar.git
synced 2025-01-03 06:11:01 +03:00
fix
This commit is contained in:
parent
4ab5403208
commit
8f28f5486c
@ -55,7 +55,7 @@ impl State {
|
||||
|
||||
fn update_all_fds_limits(&mut self) {
|
||||
let len = self.fds_limits.len() as u64;
|
||||
let per_process_limit = self.max_fds / len;
|
||||
let per_process_limit = self.max_fds / std::cmp::max(len, 1);
|
||||
for limit in self.fds_limits.values_mut() {
|
||||
limit.limit = per_process_limit;
|
||||
// reset hit count when updating limits
|
||||
|
Loading…
Reference in New Issue
Block a user