From e6401133e64afac737eb8b10153dbbad22aa414d Mon Sep 17 00:00:00 2001 From: Soyoung Kim Date: Tue, 30 Apr 2013 19:58:01 +0900 Subject: [PATCH] Fixed wrong percent send to pkgmgr [Issue#] N/A [Problem] send over percent to pkgmgr [Cause] wrong calculate percent. [Solution] fixed caluate percent. [SCMRequest] N/A Change-Id: I786ef375e5de4e53de8fe63ea3fed4b19b33f302 --- src/jobs/job_base.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/jobs/job_base.h b/src/jobs/job_base.h index c2ed1d8..bb0bbf1 100644 --- a/src/jobs/job_base.h +++ b/src/jobs/job_base.h @@ -59,7 +59,7 @@ class JobProgressBase ProgressDescription const &description) { m_progresPercent = - ((static_cast(step) + 1.0) / + ((static_cast(step)) / static_cast(lastElement)) * 100; m_progresDescription = description; } -- 2.7.4