Correct 'seessions' (sessions) (#220)
This commit is contained in:
parent
761213607c
commit
5b475751f1
@ -108,7 +108,7 @@ class Env(lib_util.LoggedClass):
|
|||||||
# We give the DB 250 files; allow ElectrumX 100 for itself
|
# We give the DB 250 files; allow ElectrumX 100 for itself
|
||||||
value = max(0, min(env_value, nofile_limit - 350))
|
value = max(0, min(env_value, nofile_limit - 350))
|
||||||
if value < env_value:
|
if value < env_value:
|
||||||
self.log_warning('lowered maximum seessions from {:,d} to {:,d} '
|
self.log_warning('lowered maximum sessions from {:,d} to {:,d} '
|
||||||
'because your open file limit is {:,d}'
|
'because your open file limit is {:,d}'
|
||||||
.format(env_value, value, nofile_limit))
|
.format(env_value, value, nofile_limit))
|
||||||
return value
|
return value
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user