aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexandru DAMIAN <alexandru.damian@intel.com>2015-02-24 17:21:00 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-02-24 23:35:39 +0000
commit8a5c83c953c1e541704fe979e90d9d3be66e9ffd (patch)
tree44e339f09c447356c880c7644b0cb3c95b146dbe
parentbc76da054570ae385c87d14c9f2337368e8311f3 (diff)
downloadbitbake-8a5c83c953c1e541704fe979e90d9d3be66e9ffd.tar.gz
toasterui: fix ETA calculation
This patch fixes the ETA calculation. [YOCTO 7349] Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--lib/toaster/orm/models.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/toaster/orm/models.py b/lib/toaster/orm/models.py
index 15481e5a5..9e6089b72 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