few small spinner updates (#1319)

old-commit-hash: 10331b1cf8
commatwo_master
Shane Smiskol 5 years ago committed by GitHub
parent 39baf83a99
commit b5b05334f4
  1. 6
      selfdrive/manager.py

@ -17,7 +17,7 @@ WEBCAM = os.getenv("WEBCAM") is not None
sys.path.append(os.path.join(BASEDIR, "pyextra"))
os.environ['BASEDIR'] = BASEDIR
TOTAL_SCONS_NODES = 1195
TOTAL_SCONS_NODES = 1140
prebuilt = os.path.exists(os.path.join(BASEDIR, 'prebuilt'))
# Create folders needed for msgq
@ -108,7 +108,7 @@ if not prebuilt:
if line.startswith(prefix):
i = int(line[len(prefix):])
if spinner is not None:
spinner.update("%d" % (50.0 * (i / TOTAL_SCONS_NODES)))
spinner.update("%d" % (70.0 * (i / TOTAL_SCONS_NODES)))
elif len(line):
compile_output.append(line)
print(line.decode('utf8', 'replace'))
@ -509,7 +509,7 @@ def manager_prepare(spinner=None):
os.chdir(os.path.dirname(os.path.abspath(__file__)))
# Spinner has to start from 70 here
total = 100.0 if prebuilt else 50.0
total = 100.0 if prebuilt else 70.0
for i, p in enumerate(managed_processes):
if spinner is not None:

Loading…
Cancel
Save