Change check for linux memory (#452)
authorTodd Sharp <41924046+recursivecodes@users.noreply.github.com>
Mon, 28 Oct 2019 01:58:56 +0000 (21:58 -0400)
committerSam <sam.saffron@gmail.com>
Mon, 28 Oct 2019 01:58:56 +0000 (12:58 +1100)
commit20e812e3d8f37818aaaf9d5e2775cd45653c40c2
tree312c7f049d971c6dbd21595811a3a687ac3cfb42
parentb6379984c2934cf3151bd7f8a4e1cb6a9ea5481f
Change check for linux memory (#452)

* Change check for linux memory

Some VMs clock in at *just under* 1GB, so checking for 1GB of RAM will miss these.  Instead, check for MB, divide by 1000 and round up.

* Refine the check_linux_memory function

Be a little more precise and only make an exception for VMs with >= 990MB RAM
discourse-setup