Fix int/float

This commit is contained in:
VirtuBox
2019-07-30 13:35:29 +02:00
parent 176a601857
commit 0fef40883b

View File

@@ -1710,7 +1710,7 @@ class WOStackController(CementBaseController):
meminfo = (os.popen('cat /proc/meminfo '
'| grep MemTotal').read()).split(" ")
memsplit = re.split(" ", meminfo[1])
wo_mem = int(memsplit[0])
wo_mem = int(float(memsplit[0]))
if (wo_mem < 4000000):
WOSwap.add(self)
Log.info(self, "Updating apt-cache, please wait...")