diff options
author | Juan José <soyjuanarbol@gmail.com> | 2025-04-22 15:12:30 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-04-22 22:12:30 +0200 |
commit | 69d2dfec148af697fa6dd45eb53816dfb4c86ecc (patch) | |
tree | bff200f38548ff6528556d537ebb0e9e37d75dba /src/unix/internal.h | |
parent | 47a5c85c4e7c63adc838d8e252fb4859e6cb743d (diff) | |
download | libuv-69d2dfec148af697fa6dd45eb53816dfb4c86ecc.tar.gz libuv-69d2dfec148af697fa6dd45eb53816dfb4c86ecc.zip |
linux: align CPU quota calculation with Rust (#4746)
Align CPU quota calculation with Rust's cgroup heuristics.
Fixes: https://github.com/libuv/libuv/issues/4740
Signed-off-by: Juan José Arboleda <soyjuanarbol@gmail.com>
Diffstat (limited to 'src/unix/internal.h')
-rw-r--r-- | src/unix/internal.h | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/src/unix/internal.h b/src/unix/internal.h index 5002c5fd..a1d7d436 100644 --- a/src/unix/internal.h +++ b/src/unix/internal.h @@ -494,13 +494,7 @@ uv__fs_copy_file_range(int fd_in, #endif #ifdef __linux__ -typedef struct { - long long quota_per_period; - long long period_length; - double proportions; -} uv__cpu_constraint; - -int uv__get_constrained_cpu(uv__cpu_constraint* constraint); +int uv__get_constrained_cpu(long long* quota); #endif #if defined(__sun) && !defined(__illumos__) |