From d65f712ea3d8941f4b9145c0630c30c20af80d13 Mon Sep 17 00:00:00 2001
From: James Moger <james.moger@gitblit.com>
Date: Fri, 11 Nov 2011 17:22:21 -0500
Subject: [PATCH] Documentation. Add javadoc and source jars to the gbapi download.

---
 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 80c88f3..43cd26f 100644
--- a/src/com/gitblit/build/Build.java
+++ b/src/com/gitblit/build/Build.java
@@ -313,7 +313,7 @@
 						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 + "%)");
 						}
 					}

--
Gitblit v1.9.1