Skip to content

Commit 0c0ebe2

Browse files
authored
Update PC_Miner.py
1 parent eacb434 commit 0c0ebe2

File tree

1 file changed

+10
-9
lines changed

1 file changed

+10
-9
lines changed

PC_Miner.py

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/usr/bin/env python3
22
"""
3-
Duino-Coin Official PC Miner v2.7.1 © MIT licensed
3+
Duino-Coin Official PC Miner v2.7.2 © MIT licensed
44
https://duinocoin.com
55
https://github.com/revoxhere/duino-coin
66
Duino-Coin Team & Community 2019-2021
@@ -127,7 +127,7 @@ class Settings:
127127
"""
128128
ENCODING = "UTF8"
129129
SEPARATOR = ","
130-
VER = 2.71
130+
VER = 2.72
131131
DATA_DIR = "Duino-Coin PC Miner " + str(VER)
132132
TRANSLATIONS = ("https://raw.githubusercontent.com/"
133133
+ "revoxhere/"
@@ -407,12 +407,13 @@ def greeting():
407407
+ " translation: " + Fore.YELLOW
408408
+ get_string("translation_autor"))
409409

410-
if psutil_en:
411-
print(Style.DIM + Fore.YELLOW + Settings.BLOCK
412-
+ Style.NORMAL + Fore.RESET + "CPU: " + Style.BRIGHT
413-
+ Fore.YELLOW + str(user_settings["threads"])
414-
+ "x " + str(cpu["brand_raw"]))
415-
else:
410+
try:
411+
if psutil_en:
412+
print(Style.DIM + Fore.YELLOW + Settings.BLOCK
413+
+ Style.NORMAL + Fore.RESET + "CPU: " + Style.BRIGHT
414+
+ Fore.YELLOW + str(user_settings["threads"])
415+
+ "x " + str(cpu["brand_raw"]))
416+
except:
416417
print(Style.DIM + Fore.YELLOW + Settings.BLOCK
417418
+ Style.NORMAL + Fore.RESET + "CPU: " + Style.BRIGHT
418419
+ Fore.YELLOW + str(user_settings["threads"])
@@ -788,11 +789,11 @@ def update():
788789

789790
Miner.preload()
790791
p_list = []
792+
mining_start_time = time()
791793
if __name__ == "__main__":
792794
from multiprocessing import freeze_support
793795
freeze_support()
794796

795-
mining_start_time = time()
796797
cpu = cpuinfo.get_cpu_info()
797798
accept = Manager().Value("i", 0)
798799
reject = Manager().Value("i", 0)

0 commit comments

Comments
 (0)