ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sbaill...@apache.org
Subject cvs commit: jakarta-ant/src/main/org/apache/tools/ant/taskdefs/optional/ide VAJAntToolGUI.java
Date Wed, 30 Jan 2002 22:16:29 GMT
sbailliez    02/01/30 14:16:29

  Modified:    src/main/org/apache/tools/ant/taskdefs/optional/ide
                        VAJAntToolGUI.java
  Log:
  Fixed time formatting.
  Submitted by: ruchet@besancon.sema.slb.com (stephane ruchet)
  PR: 5901
  
  Revision  Changes    Path
  1.8       +2 -3      jakarta-ant/src/main/org/apache/tools/ant/taskdefs/optional/ide/VAJAntToolGUI.java
  
  Index: VAJAntToolGUI.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ant/src/main/org/apache/tools/ant/taskdefs/optional/ide/VAJAntToolGUI.java,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -r1.7 -r1.8
  --- VAJAntToolGUI.java	20 Jan 2002 20:45:57 -0000	1.7
  +++ VAJAntToolGUI.java	30 Jan 2002 22:16:29 -0000	1.8
  @@ -549,16 +549,15 @@
       public static String formatTime(long millis) {
           long seconds = millis / 1000;
           long minutes = seconds / 60;
  -
           if (minutes > 0) {
               return Long.toString(minutes) + " minute"
                   + (minutes == 1 ? " " : "s ")
                   + Long.toString(seconds%60) + " second"
  -                + (seconds%60 == 1 ? "" : "s");
  +                + (seconds%60 > 1 ? "s" : "");
           }
           else {
               return Long.toString(seconds) + " second"
  -                + (seconds%60 == 1 ? "" : "s");
  +                + (seconds%60 > 1 ? "s" : "");
           }
       }
       /**
  
  
  

--
To unsubscribe, e-mail:   <mailto:ant-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-dev-help@jakarta.apache.org>


Mime
View raw message