changeset 6:b6431f86f307

* possible progress fix
author Chris Cannam
date Thu, 11 Dec 2008 15:18:43 +0000
parents b74df6cb24cb
children 3bd7b07c0891
files runner/FeatureExtractionManager.cpp
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/runner/FeatureExtractionManager.cpp	Thu Dec 11 12:09:11 2008 +0000
+++ b/runner/FeatureExtractionManager.cpp	Thu Dec 11 15:18:43 2008 +0000
@@ -544,7 +544,7 @@
         }
 
         int pp = progress;
-        progress = ((i - startFrame) * 100) / (endFrame - startFrame);
+        progress = int(((i - startFrame) * 100.0) / (endFrame - startFrame) + 0.1);
         if (progress > pp) extractionProgress.setProgress(progress);
     }