mirror of
https://github.com/Death916/minestart.git
synced 2026-04-10 03:33:43 -07:00
check evga
This commit is contained in:
parent
56bc517515
commit
a1e0d40917
1 changed files with 14 additions and 1 deletions
15
minestart.py
15
minestart.py
|
|
@ -85,6 +85,16 @@ def checkgames():
|
|||
|
||||
return 'gamerunning'
|
||||
|
||||
def check_evga():
|
||||
evga = findProcessIdByName('PrecisionX_x64.exe')
|
||||
if evga == []:
|
||||
print('evga not running')
|
||||
psutil.Popen(['E:/Precision X1/PrecisionX_x64.exe'], shell=True)
|
||||
evga = findProcessIdByName('PrecisionX_x64.exe')
|
||||
if evga:
|
||||
print('evga started')
|
||||
|
||||
|
||||
|
||||
"""def log(x):
|
||||
with open('C:/Users/Death/Documents/logs/gpulog.csv', 'a') as f:
|
||||
|
|
@ -97,6 +107,7 @@ while True:
|
|||
checkgames()
|
||||
gpus = checkgpu()
|
||||
miner = checkminer()
|
||||
check_evga()
|
||||
|
||||
usage = str(gpu.showUtilization())
|
||||
#log(str(gpu.showUtilization()))
|
||||
|
|
@ -124,4 +135,6 @@ while True:
|
|||
|
||||
#TODO:check temp
|
||||
#TODO: if no network kill and wait
|
||||
#TODO: make sure evga precision is running
|
||||
#TODO: test check_evga(), get to work with uac on
|
||||
|
||||
## log
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue