Random Project

Looks good to consolidate the RAM and SWAP

Thank you for such a simple script that can make the life easy.

Just observed that at times one may face ZERO DIVIDE error (in case SWAP is ZERO).
So added minor check in the script to get over that error.

if [ $ram_tot -eq 0 ] then
ram_tot=1
fi

if [ $swap_tot -eq 0 ] then
swap_tot=1
fi