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

@@ -145,7 +145,7 @@ def tupd():
u = int(s[:-1])-1
s = subprocess.check_output("ps -ef|wc -l", shell=True)
p = int(s[:-1])-2
s = subprocess.check_output("ps -xH|wc -l", shell=True)
s = subprocess.check_output("ps -eLf|wc -l", shell=True)
d = int(s[:-1])-2
return t,u,p,d