diff options
author | Alexandru DAMIAN <alexandru.damian@intel.com> | 2015-02-24 17:21:00 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-02-24 23:35:39 +0000 |
commit | 8a5c83c953c1e541704fe979e90d9d3be66e9ffd (patch) | |
tree | 44e339f09c447356c880c7644b0cb3c95b146dbe | |
parent | bc76da054570ae385c87d14c9f2337368e8311f3 (diff) | |
download | bitbake-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.py | 2 |
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 |