[bitbake-devel] [PATCH 12/12] toasterui: fix ETA calculation

Alex DAMIAN alexandru.damian at intel.com
Tue Feb 24 17:21:00 UTC 2015


From: Alexandru DAMIAN <alexandru.damian at intel.com>

This patch fixes the ETA calculation.

[YOCTO 7349]

Signed-off-by: Alexandru DAMIAN <alexandru.damian at intel.com>
---
 lib/toaster/orm/models.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/toaster/orm/models.py b/lib/toaster/orm/models.py
index 01ad16e..d2b579f 100644
--- a/lib/toaster/orm/models.py
+++ b/lib/toaster/orm/models.py
@@ -194,7 +194,7 @@ class Build(models.Model):
         eta = timezone.now()
         completeper = self.completeper()
         if self.completeper() > 0:
-            eta += ((eta - self.started_on)*100)/completeper
+            eta += ((eta - self.started_on)*(100-completeper))/completeper
         return eta
 
 
-- 
1.9.1




More information about the bitbake-devel mailing list