Added check for digit

This commit is contained in:
twangboy 2016-01-28 10:01:21 -07:00
parent 37b5134604
commit 41d8e8fef9

View File

@ -201,9 +201,10 @@ def status(name):
if 'PID' in line:
continue
if re.search(name, line):
if pids:
pids += '\n'
pids += line.split()[0]
if line.split()[0].isdigit():
if pids:
pids += '\n'
pids += line.split()[0]
return pids