diff options
author | Ilya Mashchenko <ilya@netdata.cloud> | 2023-12-14 12:43:42 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-12-14 12:43:42 +0200 |
commit | 01b9d1fe8c94e366ba4156d96d32cf8972cecd67 (patch) | |
tree | fe8606d04a0be0972f703b822edd21b4b72471e3 /netdata-installer.sh | |
parent | e3b4ddedd2ffd557a5277fe0a3db78f025b22e2a (diff) |
fix not assigned proc_count in installer (#16602)
Diffstat (limited to 'netdata-installer.sh')
-rwxr-xr-x | netdata-installer.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/netdata-installer.sh b/netdata-installer.sh index 4f2315bc01..c72ba698ef 100755 --- a/netdata-installer.sh +++ b/netdata-installer.sh @@ -427,7 +427,7 @@ if [ "$(uname -s)" = "Linux" ] && [ -f /proc/meminfo ]; then base=1024 scale=256 - target_ram="$((base * mega + (scale * mega * (proc_count - 1))))" + target_ram="$((base * mega + (scale * mega * (JOBS - 1))))" total_ram="$(grep MemTotal /proc/meminfo | cut -d ':' -f 2 | tr -d ' kB')" total_ram="$((total_ram * 1024))" |