]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Rename argument to compute_real_max_mem_in_queues()
authorNick Mathewson <nickm@torproject.org>
Tue, 11 Aug 2020 16:59:07 +0000 (12:59 -0400)
committerNick Mathewson <nickm@torproject.org>
Tue, 11 Aug 2020 16:59:07 +0000 (12:59 -0400)
src/app/config/config.c
src/app/config/config.h

index 1d61b76310ab4072649fed01903ccac521e9e475..8e21d67f23868f5ac2ba5d37688cde56795012e0 100644 (file)
@@ -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, " : "",
index 301faf7067d66f847df5f1e955f2785b094130af..35905ef7674b9bef7a7f583fe1bbf19f630b66f7 100644 (file)
@@ -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);