|
1 | 1 | #!/usr/bin/env python3 |
2 | 2 | """ |
3 | | -Duino-Coin Official PC Miner v2.7.1 © MIT licensed |
| 3 | +Duino-Coin Official PC Miner v2.7.2 © MIT licensed |
4 | 4 | https://duinocoin.com |
5 | 5 | https://github.com/revoxhere/duino-coin |
6 | 6 | Duino-Coin Team & Community 2019-2021 |
@@ -127,7 +127,7 @@ class Settings: |
127 | 127 | """ |
128 | 128 | ENCODING = "UTF8" |
129 | 129 | SEPARATOR = "," |
130 | | - VER = 2.71 |
| 130 | + VER = 2.72 |
131 | 131 | DATA_DIR = "Duino-Coin PC Miner " + str(VER) |
132 | 132 | TRANSLATIONS = ("https://raw.githubusercontent.com/" |
133 | 133 | + "revoxhere/" |
@@ -407,12 +407,13 @@ def greeting(): |
407 | 407 | + " translation: " + Fore.YELLOW |
408 | 408 | + get_string("translation_autor")) |
409 | 409 |
|
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: |
416 | 417 | print(Style.DIM + Fore.YELLOW + Settings.BLOCK |
417 | 418 | + Style.NORMAL + Fore.RESET + "CPU: " + Style.BRIGHT |
418 | 419 | + Fore.YELLOW + str(user_settings["threads"]) |
@@ -788,11 +789,11 @@ def update(): |
788 | 789 |
|
789 | 790 | Miner.preload() |
790 | 791 | p_list = [] |
| 792 | +mining_start_time = time() |
791 | 793 | if __name__ == "__main__": |
792 | 794 | from multiprocessing import freeze_support |
793 | 795 | freeze_support() |
794 | 796 |
|
795 | | - mining_start_time = time() |
796 | 797 | cpu = cpuinfo.get_cpu_info() |
797 | 798 | accept = Manager().Value("i", 0) |
798 | 799 | reject = Manager().Value("i", 0) |
|
0 commit comments