update.py: fix import mistake
Signed-off-by: Maxime Chretien <maxime.chretien@bootlin.com>
This commit is contained in:
parent
b92556655c
commit
455b5b6766
1 changed files with 2 additions and 2 deletions
|
|
@ -332,8 +332,8 @@ def progress(msg, current):
|
|||
# Main
|
||||
|
||||
# Check number of threads arg
|
||||
if len(sys.argv) >= 2 and sys.argv[1].isdigit() :
|
||||
cpu = int(sys.argv[1])
|
||||
if len(argv) >= 2 and argv[1].isdigit() :
|
||||
cpu = int(argv[1])
|
||||
|
||||
if cpu < 3 :
|
||||
cpu = 3
|
||||
|
|
|
|||
Loading…
Reference in a new issue