Adjust Prime95 countown message
This commit is contained in:
parent
5edde45f0e
commit
1d88c57be8
1 changed files with 5 additions and 2 deletions
|
|
@ -93,6 +93,7 @@ TESTS = {
|
|||
|
||||
def connect_to_db():
|
||||
"""Connect to osTicket database."""
|
||||
#TODO# Open SSH tunnel to DB server
|
||||
ost_db['Connection'] = mariadb.connect(
|
||||
user=DB_USER, password=DB_PASS, database=DB_NAME, host=DB_HOST)
|
||||
ost_db['Cursor'] = ost_db['Connection'].cursor()
|
||||
|
|
@ -597,8 +598,10 @@ def run_mprime():
|
|||
try:
|
||||
for i in range(int(MPRIME_LIMIT)):
|
||||
clear_screen()
|
||||
print_standard('Running Prime95 ({} minutes left)'.format(
|
||||
int(MPRIME_LIMIT)-i))
|
||||
min_left = int(MPRIME_LIMIT)-i)
|
||||
print_standard('Running Prime95 ({} minute{} left)'.format(
|
||||
min_left,
|
||||
's' if min_left != 1 else '')
|
||||
print_warning('If running too hot, press CTRL+c to abort the test')
|
||||
sleep(60)
|
||||
except KeyboardInterrupt:
|
||||
|
|
|
|||
Loading…
Reference in a new issue