This commit is contained in:
Michel Le Cocq 2020-06-21 14:36:02 +02:00
parent 9875c9302c
commit 060cb02c74

View File

@ -69,6 +69,8 @@ MEMSIZE=$(cat /proc/meminfo | grep MemTotal | awk -F' ' '{print $2}')
SWAPVOLSIZE=$(( MEMSIZE / 1024 )) SWAPVOLSIZE=$(( MEMSIZE / 1024 ))
~~~ ~~~
like bellow :
~~~ ~~~
# Convert to MiB to align the size on the size of a block # Convert to MiB to align the size on the size of a block
SWAPVOLSIZE=$(( SWAPSIZE / 1024 / 1024 )) SWAPVOLSIZE=$(( SWAPSIZE / 1024 / 1024 ))