X-Git-Url: http://git.nikiroo.be/?a=blobdiff_plain;f=src%2Fbe%2Fnikiroo%2Futils%2FProgress.java;h=2872530b68542585783467e3241835072e75570a;hb=16c492f5ea1daa04ee29be168f44f53c35bd52cd;hp=5ee32217d466c1ad7bbb13e21ecf24e6fe457f57;hpb=cac67ebc7e930733b55a381aa72e44c41eac224a;p=fanfix.git diff --git a/src/be/nikiroo/utils/Progress.java b/src/be/nikiroo/utils/Progress.java index 5ee3221..2872530 100644 --- a/src/be/nikiroo/utils/Progress.java +++ b/src/be/nikiroo/utils/Progress.java @@ -294,6 +294,7 @@ public class Progress { * the progress to set */ private void setTotalProgress(Progress pg, String name, int progress) { + // TODO: name is not used... and this is probably a bug in this case synchronized (getLock()) { progress = Math.max(min, progress); progress = Math.min(max, progress); @@ -379,6 +380,7 @@ public class Progress { } progress.addProgressListener(new ProgressListener() { + @Override public void progress(Progress pg, String name) { synchronized (getLock()) { double total = ((double) localProgress) / (max - min);