mirror of
https://github.com/Death916/minestart.git
synced 2026-04-10 03:33:43 -07:00
variable change
This commit is contained in:
parent
1c98d7f4f8
commit
4cc94f15a7
1 changed files with 8 additions and 5 deletions
13
minestart.py
13
minestart.py
|
|
@ -5,20 +5,23 @@ import GPUtil as gpu
|
||||||
import time
|
import time
|
||||||
|
|
||||||
|
|
||||||
def isavailable():
|
def checkgpu():
|
||||||
card = gpu.getGPUs()
|
card = gpu.getGPUs()
|
||||||
isAvailable = gpu.getAvailability(card, maxLoad=.6)
|
isavailable = gpu.getAvailability(card, maxLoad=.6)
|
||||||
|
|
||||||
if isAvailable == [1]:
|
if isavailable == [1]:
|
||||||
print("can mine")
|
print("can mine")
|
||||||
print(time.ctime())
|
print(time.ctime())
|
||||||
time.sleep(1)
|
time.sleep(1)
|
||||||
|
|
||||||
if isAvailable == [0]:
|
if isavailable == [0]:
|
||||||
print("cant mine")
|
print("cant mine")
|
||||||
print(time.ctime())
|
print(time.ctime())
|
||||||
time.sleep(1)
|
time.sleep(1)
|
||||||
return isAvailable
|
return isavailable
|
||||||
|
|
||||||
|
def checkminer():
|
||||||
|
|
||||||
|
|
||||||
while True:
|
while True:
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue