G-Rost commited on
Commit
1a00071
1 Parent(s): a9a88e5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -7,7 +7,7 @@ import time
7
  import psutil
8
 
9
  # Get the number of physical CPU cores (excluding hyperthreads)
10
- NUM_CPU_CORES = psutil.cpu_count(logical=False)
11
 
12
  # Cap the number of threads to the available physical cores
13
  MAX_THREADS = min(8, NUM_CPU_CORES)
 
7
  import psutil
8
 
9
  # Get the number of physical CPU cores (excluding hyperthreads)
10
+ NUM_CPU_CORES = psutil.cpu_count(logical=True)
11
 
12
  # Cap the number of threads to the available physical cores
13
  MAX_THREADS = min(8, NUM_CPU_CORES)