few small spinner updates (#1319)
This commit is contained in:
parent
bbf3cc48be
commit
10331b1cf8
|
@ -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…
Reference in a new issue