fix: fix wrong gpumem calculation (#176)
Signed-off-by: Patrick Gehrsitz <58853838+mryel00@users.noreply.github.com>
This commit is contained in:
parent
c9bc30414e
commit
e9f36c9c26
@ -29,11 +29,9 @@ set_gpu_mem() {
|
|||||||
## Determine Ramsize and export MAKEFLAG
|
## Determine Ramsize and export MAKEFLAG
|
||||||
if [[ "$(get_avail_mem)" -le 524288 ]]; then
|
if [[ "$(get_avail_mem)" -le 524288 ]]; then
|
||||||
mem_split=128
|
mem_split=128
|
||||||
fi
|
elif [[ "$(get_avail_mem)" -le 1048576 ]]; then
|
||||||
if [[ "$(get_avail_mem)" -le 1048576 ]]; then
|
|
||||||
mem_split=160
|
mem_split=160
|
||||||
fi
|
else [[ "$(get_avail_mem)" -gt 1048576 ]]; then
|
||||||
if [[ "$(get_avail_mem)" -gt 1048576 ]]; then
|
|
||||||
mem_split=256
|
mem_split=256
|
||||||
fi
|
fi
|
||||||
if [[ "$(is_raspbian)" = "1" ]] && [[ -n "$(command -v raspi-config)" ]]; then
|
if [[ "$(is_raspbian)" = "1" ]] && [[ -n "$(command -v raspi-config)" ]]; then
|
||||||
|
Loading…
x
Reference in New Issue
Block a user