replace ps -xH with ps -eLf

This commit is contained in:
macos
2019-12-26 14:31:49 +08:00
parent ce4def5c87
commit 5e527ad369
2 changed files with 2 additions and 2 deletions

View File

@@ -111,7 +111,7 @@ def tupd():
t = int(os.popen('ss -t|wc -l').read()[:-1])-1
u = int(os.popen('ss -u|wc -l').read()[:-1])-1
p = int(os.popen('ps -ef|wc -l').read()[:-1])-2
d = int(os.popen('ps -xH|wc -l').read()[:-1])-2
d = int(os.popen('ps -eLf|wc -l').read()[:-1])-2
else:
t = int(os.popen('netstat -an|find "TCP" /c').read()[:-1])-1
u = int(os.popen('netstat -an|find "UDP" /c').read()[:-1])-1