Mercurial > hg > sonic-annotator
diff runner/FeatureExtractionManager.cpp @ 6:b6431f86f307
* possible progress fix
author | Chris Cannam |
---|---|
date | Thu, 11 Dec 2008 15:18:43 +0000 |
parents | 03a02c1f0a9f |
children | f98b58fb294f |
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); }