summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/toaster/orm/models.py
diff options
context:
space:
mode:
authorAlexandru Damian <alexandru.damian@intel.com>2015-02-17 15:02:26 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-02-20 12:58:19 +0000
commit9c358bd1d7a301e7aee3676871310d50c336ba07 (patch)
tree65374bdda59c43fa3277ed23045204c0f5b3c121 /bitbake/lib/toaster/orm/models.py
parent6dbd214fdf8fa20f0e16e802b458e05c5a50a374 (diff)
downloadpoky-9c358bd1d7a301e7aee3676871310d50c336ba07.tar.gz
bitbake: toasterui: fix time estimation in project page
This patch fixes the time estimation to build completion in project page. Additionally it fixes the Most Recent Builds section used in various pages in managed mode, and proper time to build estimation in all pages. [YOCTO #7004] (Bitbake rev: 5fecfda0e47c2ecba9b7c903c6d258eefa431aa0) Signed-off-by: Alexandru Damian <alexandru.damian@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/toaster/orm/models.py')
-rw-r--r--bitbake/lib/toaster/orm/models.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bitbake/lib/toaster/orm/models.py b/bitbake/lib/toaster/orm/models.py
index f70c0066ad..0f85c8fd0a 100644
--- a/bitbake/lib/toaster/orm/models.py
+++ b/bitbake/lib/toaster/orm/models.py
@@ -194,7 +194,7 @@ class Build(models.Model):
194 eta = timezone.now() 194 eta = timezone.now()
195 completeper = self.completeper() 195 completeper = self.completeper()
196 if self.completeper() > 0: 196 if self.completeper() > 0:
197 eta = timezone.now() + ((timezone.now() - self.started_on)*(100-completeper)/completeper) 197 eta += ((eta - self.started_on)*100)/completeper
198 return eta 198 return eta
199 199
200 200