karaf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ff...@apache.org
Subject svn commit: r1420659 - /karaf/branches/karaf-2.3.x/main/src/main/java/org/apache/karaf/main/StartupListener.java
Date Wed, 12 Dec 2012 13:21:09 GMT
Author: ffang
Date: Wed Dec 12 13:21:06 2012
New Revision: 1420659

URL: http://svn.apache.org/viewvc?rev=1420659&view=rev
Log:
[KARAF-2052]also fix this issue on windows

Modified:
    karaf/branches/karaf-2.3.x/main/src/main/java/org/apache/karaf/main/StartupListener.java

Modified: karaf/branches/karaf-2.3.x/main/src/main/java/org/apache/karaf/main/StartupListener.java
URL: http://svn.apache.org/viewvc/karaf/branches/karaf-2.3.x/main/src/main/java/org/apache/karaf/main/StartupListener.java?rev=1420659&r1=1420658&r2=1420659&view=diff
==============================================================================
--- karaf/branches/karaf-2.3.x/main/src/main/java/org/apache/karaf/main/StartupListener.java
(original)
+++ karaf/branches/karaf-2.3.x/main/src/main/java/org/apache/karaf/main/StartupListener.java
Wed Dec 12 13:21:06 2012
@@ -68,12 +68,12 @@ class StartupListener implements Framewo
         }
     }
     public void showProgressBar(int done, int total) {
-        // progress bar can only have 73 characters so that 80 char wide terminal will display
properly
+        // progress bar can only have 72 characters so that 80 char wide terminal will display
properly
         int percent = (done * 100) / total;
-        int scaledPercent = (int) (73.0 * (percent / 100.0));
+        int scaledPercent = (int) (72.0 * (percent / 100.0));
         StringBuilder sb = new StringBuilder();
         sb.append(String.format("\r%3d%% [", percent));
-        for (int i = 0; i < 73; i++) {
+        for (int i = 0; i < 72; i++) {
             if (i < scaledPercent) {
                 sb.append('=');
             } else if (i == scaledPercent) {



Mime
View raw message