File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ public static int Main(string[] args)
37
37
} ;
38
38
string Path = "" ;
39
39
string PathOutput = "" ;
40
- int Threads = 2 ;
40
+ int Threads = Math . Max ( Environment . ProcessorCount - 2 , 2 ) ;
41
41
int RunningThreads = 0 ;
42
42
43
43
// Parsing arguments
@@ -46,7 +46,7 @@ public static int Main(string[] args)
46
46
Console . WriteLine ( "Usage: " ) ;
47
47
Console . WriteLine ( "fastdlgen.exe <path to addon dir> (output path) (Threads)" ) ;
48
48
Console . WriteLine ( "If no output path is given it will be put into '<path to addon dir>/upload_dir'" ) ;
49
- Console . WriteLine ( "If no amount of Threads are given it will default to 2 threads." ) ;
49
+ Console . WriteLine ( $ "If no amount of Threads are given it will default to { Threads } threads.") ;
50
50
Console . WriteLine ( "The Output directory will always be cleaned." ) ;
51
51
52
52
return 1 ;
You can’t perform that action at this time.
0 commit comments