summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/python/python3-cryptography/check-memfree.py
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-devtools/python/python3-cryptography/check-memfree.py')
-rwxr-xr-xmeta/recipes-devtools/python/python3-cryptography/check-memfree.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/recipes-devtools/python/python3-cryptography/check-memfree.py b/meta/recipes-devtools/python/python3-cryptography/check-memfree.py
index c111a9074c..ed680d8d5b 100755
--- a/meta/recipes-devtools/python/python3-cryptography/check-memfree.py
+++ b/meta/recipes-devtools/python/python3-cryptography/check-memfree.py
@@ -4,7 +4,7 @@ import sys
4meminfo = dict((i.split()[0].rstrip(':'),int(i.split()[1])) for i in open('/proc/meminfo').readlines()) 4meminfo = dict((i.split()[0].rstrip(':'),int(i.split()[1])) for i in open('/proc/meminfo').readlines())
5mem_free = meminfo['MemTotal']/1024./1024. 5mem_free = meminfo['MemTotal']/1024./1024.
6if mem_free < 2.: 6if mem_free < 2.:
7 raise RuntimeError("Insufficient free memory({:.3f}): requires > 2 GB".format(mem_free)) 7 print("Insufficient free memory({:.3f}): requires > 2 GB".format(mem_free))
8 sys.exit(1) 8 sys.exit(1)
9else: 9else:
10 print("Free memory: {:.3f} GB".format(mem_free)) 10 print("Free memory: {:.3f} GB".format(mem_free))