mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-27 22:03:31 +01:00
Fix a couple of jenkins issues from 12538.
This commit is contained in:
parent
62f97545e4
commit
8ede8d411a
@ -4097,9 +4097,13 @@ have_enough_mem_for_dircache(const or_options_t *options, size_t total_mem,
|
||||
char **msg)
|
||||
{
|
||||
*msg = NULL;
|
||||
/* XXX We should possibly be looking at MaxMemInQueues here
|
||||
* unconditionally. Or we should believe total_mem unconditionally. */
|
||||
if (total_mem == 0) {
|
||||
if (get_total_system_memory(&total_mem) < 0)
|
||||
total_mem = options->MaxMemInQueues;
|
||||
if (get_total_system_memory(&total_mem) < 0) {
|
||||
total_mem = options->MaxMemInQueues >= SIZE_MAX ?
|
||||
SIZE_MAX : options->MaxMemInQueues;
|
||||
}
|
||||
}
|
||||
if (options->DirCache) {
|
||||
if (total_mem < DIRCACHE_MIN_BANDWIDTH) {
|
||||
|
@ -193,6 +193,7 @@ noinst_HEADERS+= \
|
||||
src/test/rend_test_helpers.h \
|
||||
src/test/test.h \
|
||||
src/test/test_helpers.h \
|
||||
src/test/test_dir_common.h \
|
||||
src/test/test_descriptors.inc \
|
||||
src/test/example_extrainfo.inc \
|
||||
src/test/failing_routerdescs.inc \
|
||||
|
Loading…
Reference in New Issue
Block a user