Fixed regex

Signed-off-by: fly <merspieler@airmail.cc>
This commit is contained in:
fly 2020-02-15 22:26:17 +00:00
parent 544255d0c3
commit b339adaa02

View file

@ -120,7 +120,7 @@ while running:
print("Running: " + str(l.run_count))
print("Shutting down: " + str(l.stop_count))
else:
match = re.match("(set workers) ([0-9]?)", cmd)
match = re.match("(set workers) ([0-9]+)", cmd)
if match != None:
if match.group(1) == "set workers":
l.set_proc_count(int(match.group(2)))