fix: fix wrong gpumem calculation (#176)

Signed-off-by: Patrick Gehrsitz <58853838+mryel00@users.noreply.github.com>
This commit is contained in:
Patrick Gehrsitz 2023-09-12 19:59:44 +02:00 committed by GitHub
parent c9bc30414e
commit e9f36c9c26
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -29,11 +29,9 @@ set_gpu_mem() {
## Determine Ramsize and export MAKEFLAG
if [[ "$(get_avail_mem)" -le 524288 ]]; then
mem_split=128
fi
if [[ "$(get_avail_mem)" -le 1048576 ]]; then
elif [[ "$(get_avail_mem)" -le 1048576 ]]; then
mem_split=160
fi
if [[ "$(get_avail_mem)" -gt 1048576 ]]; then
else [[ "$(get_avail_mem)" -gt 1048576 ]]; then
mem_split=256
fi
if [[ "$(is_raspbian)" = "1" ]] && [[ -n "$(command -v raspi-config)" ]]; then