Commit 61a34f3e authored by Céline Noirot's avatar Céline Noirot
Browse files

more specific regexp

parent 897515ed
......@@ -66,7 +66,7 @@ class Component(object):
self.__cpu = int(re.match( r'.*cpu=(\d+)\s?.*', self.batch_options).group(1))
except: pass
self.__memory = re.match( r'.*\s+mem=(\d+\S+)\s?.*', self.batch_options).group(1)
self.__memory = re.match( r'.*\s+mem=(\d+\w)\s?.*', self.batch_options).group(1)
except: pass
def get_cpu(self):
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment