Version 1.2.3: getVersion, openResource, fixes
[nikiroo-utils.git] / src / be / nikiroo / utils / Progress.java
index 8b6e10e5fc97ca6e5b2748aeb58c4829d80a3287..473e80662a4a816a1fb8af21d82421c654f6ee3d 100644 (file)
@@ -270,7 +270,7 @@ public class Progress {
                                        name = Progress.this.name;
                                }
 
-                               setTotalProgress(name, (int) (total * (max - min)));
+                               setTotalProgress(name, (int) Math.round(total * (max - min)));
                        }
                });