Fixed wrong percent send to pkgmgr
authorSoyoung Kim <sy037.kim@samsung.com>
Tue, 30 Apr 2013 10:58:01 +0000 (19:58 +0900)
committerGerrit Code Review <gerrit2@kim11>
Tue, 30 Apr 2013 11:04:59 +0000 (20:04 +0900)
[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

index c2ed1d8..bb0bbf1 100644 (file)
@@ -59,7 +59,7 @@ class JobProgressBase
                         ProgressDescription const &description)
     {
         m_progresPercent =
-            ((static_cast<ProgressPercent>(step) + 1.0) /
+            ((static_cast<ProgressPercent>(step)) /
              static_cast<ProgressPercent>(lastElement)) * 100;
         m_progresDescription = description;
     }