From e90e8bb8e636fa10101dbc2e745af6a65ad5e36b Mon Sep 17 00:00:00 2001 From: Faraphel Date: Mon, 12 Sep 2022 08:55:20 +0200 Subject: [PATCH] default amount of thread is now the amount of core instead of 8 --- source/option.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source/option.py b/source/option.py index e9c7f11..02cea8c 100644 --- a/source/option.py +++ b/source/option.py @@ -1,4 +1,5 @@ import json +import os from pathlib import Path from source.utils import restart_program @@ -50,7 +51,7 @@ class Options: self._options: dict[str, Option] = { "language": Option(self, value="en", reboot_on_change=True), - "threads": Option(self, value=8), + "threads": Option(self, value=os.cpu_count()), "mystuff_pack_selected": Option(self, value=None), "mystuff_packs": Option(self, value={}), "extension": Option(self, value="WBFS"),