update.py: fix import mistake

Signed-off-by: Maxime Chretien <maxime.chretien@bootlin.com>
This commit is contained in:
Maxime Chretien 2020-06-03 10:27:28 +02:00
parent b92556655c
commit 455b5b6766

View file

@ -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