Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Mike Perry
Tor
Commits
431dcc42
Commit
431dcc42
authored
Aug 11, 2020
by
Nick Mathewson
🌻
Browse files
Rename argument to compute_real_max_mem_in_queues()
parent
aa2c93b9
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/app/config/config.c
View file @
431dcc42
...
...
@@ -4583,7 +4583,7 @@ options_validate(or_options_t *old_options, or_options_t *options,
* actual maximum value. We clip this value if it's too low, and autodetect
* it if it's set to 0. */
STATIC
uint64_t
compute_real_max_mem_in_queues
(
const
uint64_t
val
,
int
log_guess
)
compute_real_max_mem_in_queues
(
const
uint64_t
val
,
bool
is_server
)
{
uint64_t
result
;
...
...
@@ -4642,7 +4642,7 @@ compute_real_max_mem_in_queues(const uint64_t val, int log_guess)
result
=
avail
;
}
}
if
(
log_guess
&&
!
notice_sent
)
{
if
(
is_server
&&
!
notice_sent
)
{
log_notice
(
LD_CONFIG
,
"%sMaxMemInQueues is set to %"
PRIu64
" MB. "
"You can override this by setting MaxMemInQueues by hand."
,
ram
?
"Based on detected system memory, "
:
""
,
...
...
src/app/config/config.h
View file @
431dcc42
...
...
@@ -290,7 +290,7 @@ STATIC int parse_port_config(smartlist_t *out,
STATIC
int
check_bridge_distribution_setting
(
const
char
*
bd
);
STATIC
uint64_t
compute_real_max_mem_in_queues
(
const
uint64_t
val
,
int
log_guess
);
bool
is_server
);
STATIC
int
open_and_add_file_log
(
const
log_severity_list_t
*
severity
,
const
char
*
fname
,
int
truncate_log
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment