From 8aa9a230783b14d2c180fa7ad7e1d822466e0f24 Mon Sep 17 00:00:00 2001 From: Alexandru DAMIAN Date: Tue, 24 Feb 2015 17:21:00 +0000 Subject: bitbake: toasterui: fix ETA calculation This patch fixes the ETA calculation. [YOCTO 7349] (Bitbake rev: 8a5c83c953c1e541704fe979e90d9d3be66e9ffd) Signed-off-by: Alexandru DAMIAN Signed-off-by: Richard Purdie --- bitbake/lib/toaster/orm/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bitbake/lib') diff --git a/bitbake/lib/toaster/orm/models.py b/bitbake/lib/toaster/orm/models.py index 15481e5a58..9e6089b729 100644 --- a/bitbake/lib/toaster/orm/models.py +++ b/bitbake/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 -- cgit v1.2.3-54-g00ecf