diff options
author | Nick Mathewson <nickm@torproject.org> | 2020-08-11 12:59:07 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2020-08-11 12:59:07 -0400 |
commit | 431dcc42e028e1b56f60131e3e153296ff73c25e (patch) | |
tree | c5e59d1a9105de5542023ea8476a6ad5799f4adf /src/app | |
parent | aa2c93b90b0745a07397538bf7802fba83096b68 (diff) | |
download | tor-431dcc42e028e1b56f60131e3e153296ff73c25e.tar.gz tor-431dcc42e028e1b56f60131e3e153296ff73c25e.zip |
Rename argument to compute_real_max_mem_in_queues()
Diffstat (limited to 'src/app')
-rw-r--r-- | src/app/config/config.c | 4 | ||||
-rw-r--r-- | src/app/config/config.h | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/app/config/config.c b/src/app/config/config.c index 1d61b76310..8e21d67f23 100644 --- a/src/app/config/config.c +++ b/src/app/config/config.c @@ -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, " : "", diff --git a/src/app/config/config.h b/src/app/config/config.h index 301faf7067..35905ef767 100644 --- a/src/app/config/config.h +++ b/src/app/config/config.h @@ -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); |