mirror of
https://github.com/vdsm/virtual-dsm.git
synced 2025-10-12 05:34:53 +08:00
fix: Syntax for arithmetic operations (#1020)
This commit is contained in:
parent
0a0cd98de3
commit
2e2017470e
@ -97,8 +97,8 @@ RAM_SIZE="${RAM_SIZE// /}"
|
||||
[ -z "$RAM_SIZE" ] && error "RAM_SIZE not specified!" && exit 16
|
||||
|
||||
if [[ "${RAM_SIZE,,}" == "max" ]]; then
|
||||
RAM_WANTED=(( RAM_AVAIL - RAM_SPARE - RAM_SPARE))
|
||||
RAM_WANTED=(( RAM_WANTED / 1073741825 ))
|
||||
RAM_WANTED=$(( RAM_AVAIL - RAM_SPARE - RAM_SPARE ))
|
||||
RAM_WANTED=$(( RAM_WANTED / 1073741825 ))
|
||||
RAM_SIZE="${RAM_WANTED}G"
|
||||
fi
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user