mirror of
https://git.yoctoproject.org/poky
synced 2026-04-19 15:32:13 +02:00
bitbake: toastergui: fix built ETA calculation
We fix the calculation showing the estimated time to build completion. (Bitbake rev: 5d85d1a7bbbce2c9baaa613c5cc84c511fb88376) Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
26db62e359
commit
7a42bfecc2
@@ -230,11 +230,10 @@ def builds(request):
|
||||
b.completeper = tf.exclude(order__isnull=True).count()*100/tf.count()
|
||||
else:
|
||||
b.completeper = 0
|
||||
b.eta = timezone.now()
|
||||
|
||||
b.eta = 0
|
||||
if b.completeper > 0:
|
||||
b.eta += ((timezone.now() - b.started_on)*100/b.completeper)
|
||||
else:
|
||||
b.eta = 0
|
||||
b.eta = timezone.now() + ((timezone.now() - b.started_on)*(100-b.completeper)/b.completeper)
|
||||
|
||||
# set up list of fstypes for each build
|
||||
fstypes_map = {};
|
||||
|
||||
Reference in New Issue
Block a user