Fixed regex
Signed-off-by: fly <merspieler@airmail.cc>
This commit is contained in:
parent
544255d0c3
commit
b339adaa02
1 changed files with 1 additions and 1 deletions
|
@ -120,7 +120,7 @@ while running:
|
||||||
print("Running: " + str(l.run_count))
|
print("Running: " + str(l.run_count))
|
||||||
print("Shutting down: " + str(l.stop_count))
|
print("Shutting down: " + str(l.stop_count))
|
||||||
else:
|
else:
|
||||||
match = re.match("(set workers) ([0-9]?)", cmd)
|
match = re.match("(set workers) ([0-9]+)", cmd)
|
||||||
if match != None:
|
if match != None:
|
||||||
if match.group(1) == "set workers":
|
if match.group(1) == "set workers":
|
||||||
l.set_proc_count(int(match.group(2)))
|
l.set_proc_count(int(match.group(2)))
|
||||||
|
|
Loading…
Add table
Reference in a new issue