Update core.c

This commit is contained in:
Jameson Nash 2025-10-03 21:23:07 -04:00 committed by GitHub
parent 7ffec72cdb
commit 65a41998d3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -2160,8 +2160,7 @@ uint64_t uv__get_rlimit_max_memory(void) {
/* Check RLIMIT_AS (virtual memory limit). */
if (getrlimit(RLIMIT_AS, &rl) == 0 && rl.rlim_cur != RLIM_INFINITY) {
rlimit_value = rl.rlim_cur;
if (result == 0 || rlimit_value < result)
result = rlimit_value;
result = rlimit_value;
}
#endif