summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xbitbake/lib/toaster/toastergui/views.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/bitbake/lib/toaster/toastergui/views.py b/bitbake/lib/toaster/toastergui/views.py
index 686cd5c8ce..b38d260d6f 100755
--- a/bitbake/lib/toaster/toastergui/views.py
+++ b/bitbake/lib/toaster/toastergui/views.py
@@ -230,11 +230,10 @@ def builds(request):
230 b.completeper = tf.exclude(order__isnull=True).count()*100/tf.count() 230 b.completeper = tf.exclude(order__isnull=True).count()*100/tf.count()
231 else: 231 else:
232 b.completeper = 0 232 b.completeper = 0
233 b.eta = timezone.now() 233
234 b.eta = 0
234 if b.completeper > 0: 235 if b.completeper > 0:
235 b.eta += ((timezone.now() - b.started_on)*100/b.completeper) 236 b.eta = timezone.now() + ((timezone.now() - b.started_on)*(100-b.completeper)/b.completeper)
236 else:
237 b.eta = 0
238 237
239 # set up list of fstypes for each build 238 # set up list of fstypes for each build
240 fstypes_map = {}; 239 fstypes_map = {};