Update random.py

This commit is contained in:
MoonGem 2018-03-25 08:18:58 -05:00 committed by GitHub
parent 68a619ad0a
commit 2cb760cac6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -34,7 +34,7 @@ while True:
for proc in processes: for proc in processes:
wait = proc.communicate() wait = proc.communicate()
string = str(wait) string = str(wait)
params = re.search(r'~~~~(.*)\~~~~', string) params = re.search(r'~~~~(.*)~~~~', string).group(1)
mfi = re.search(r'MFI Value(.*)XXX', string) mfi = re.search(r'MFI Value(.*)XXX', string)
fastd = re.search(r'FASTD Value(.*)XXX', string) fastd = re.search(r'FASTD Value(.*)XXX', string)
adx = re.search(r'ADX Value(.*)XXX', string) adx = re.search(r'ADX Value(.*)XXX', string)
@ -47,6 +47,9 @@ while True:
print(total) print(total)
if params: if params:
print(params) print(params)
print('~~~~~~')
print('Only enable the above settings, not all settings below are used!')
print('~~~~~~')
if mfi: if mfi:
print(mfi.group(1)) print(mfi.group(1))
if fastd: if fastd: