diff options
-rw-r--r-- | src/com/gitblit/build/Build.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/com/gitblit/build/Build.java b/src/com/gitblit/build/Build.java index 80c88f30..43cd26f7 100644 --- a/src/com/gitblit/build/Build.java +++ b/src/com/gitblit/build/Build.java @@ -313,7 +313,7 @@ public class Build { lastProgress = progress;
updateDownload(progress, targetFile);
if (downloadListener != null) {
- int percent = Math.round(100 * progress);
+ int percent = Math.min(100, Math.round(100 * progress));
downloadListener.downloading(mo.name + " (" + percent + "%)");
}
}
|