James Moger
2011-11-07 143fc9d357c174a56340052618d481617686fc72
src/com/gitblit/utils/TimeUtils.java
@@ -253,11 +253,9 @@
      int mins = 60;
      if (!StringUtils.isEmpty(frequency)) {
         try {
            String str;
            String str = frequency.trim();
            if (frequency.indexOf(' ') > -1) {
               str = frequency.substring(0, frequency.indexOf(' ')).trim();
            } else {
               str = frequency.trim();
               str = str.substring(0, str.indexOf(' ')).trim();
            }
            mins = (int) Float.parseFloat(str);
         } catch (NumberFormatException e) {
@@ -268,7 +266,7 @@
      }
      if (frequency.indexOf("day") > -1) {
         // convert to minutes
         mins *= 24 * 60;
         mins *= 1440;
      } else if (frequency.indexOf("hour") > -1) {
         // convert to minutes
         mins *= 60;