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:45 +0000 |
commit | 8aa9a230783b14d2c180fa7ad7e1d822466e0f24 (patch) | |
tree | 2c74c1261033723cbb95812a17be4d18f9e49429 /bitbake | |
parent | f120b7822ea09fd234a51000c979ad97c9f26722 (diff) | |
download | poky-8aa9a230783b14d2c180fa7ad7e1d822466e0f24.tar.gz |
bitbake: toasterui: fix ETA calculation
This patch fixes the ETA calculation.
[YOCTO 7349]
(Bitbake rev: 8a5c83c953c1e541704fe979e90d9d3be66e9ffd)
Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake')
-rw-r--r-- | bitbake/lib/toaster/orm/models.py | 2 |
1 files changed, 1 insertions, 1 deletions
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): | |||
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 += ((eta - self.started_on)*100)/completeper | 197 | eta += ((eta - self.started_on)*(100-completeper))/completeper |
198 | return eta | 198 | return eta |
199 | 199 | ||
200 | 200 | ||