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>
This commit is contained in:
parent
f120b7822e
commit
8aa9a23078
|
@ -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
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue