Skip to content

Commit

Permalink
Merge pull request #23 from bioelectromecha/master
Browse files Browse the repository at this point in the history
R.S - fixed typo in TimeEstimates.java
  • Loading branch information
vvatanabe authored Oct 6, 2016
2 parents daa9073 + 0924d6d commit 3fb281a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/com/nulabinc/zxcvbn/TimeEstimates.java
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,11 @@ public static String displayTime(final double seconds) {
final Double year = month * 12;
final Double century = year * 100;
if (seconds < 1) return format(null, "less than a second");
else if (seconds < minute) return format(seconds, "%s seconds");
else if (seconds < minute) return format(seconds, "%s second");
else if (seconds < hour) return format(divide(seconds, minute), "%s minute");
else if (seconds < day) return format(divide(seconds, hour), "%s hour");
else if (seconds < month) return format(divide(seconds, day), "%s day");
else if (seconds < year) return format(divide(seconds, month), "%s monty");
else if (seconds < year) return format(divide(seconds, month), "%s month");
else if (seconds < century) return format(divide(seconds, year), "%s year");
else return format(null, "centuries");
}
Expand Down

0 comments on commit 3fb281a

Please sign in to comment.