X-Git-Url: http://git.nikiroo.be/?a=blobdiff_plain;f=src%2Fbe%2Fnikiroo%2Futils%2FProgress.java;fp=src%2Fbe%2Fnikiroo%2Futils%2FProgress.java;h=2872530b68542585783467e3241835072e75570a;hb=cd0c27d2e457ea19fcd9def879e1534a528292c2;hp=5ee32217d466c1ad7bbb13e21ecf24e6fe457f57;hpb=b771aed5070864bbcbae286c8de74478f6837618;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);