Skip to content

Commit

Permalink
no days as unit
Browse files Browse the repository at this point in the history
  • Loading branch information
RecursiveG committed Aug 19, 2015
1 parent c3aba14 commit 464fa9e
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
6 changes: 1 addition & 5 deletions src/main/java/cat/nyaa/playtimetracker/Locale.java
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,7 @@ public static String formatTime(long ms) {
ms = Math.floorDiv(ms, 60);
}
if (ms > 0) {
str = String.format(s.getString("h"), ms % 24) + str;
ms = Math.floorDiv(ms, 24);
}
if (ms > 0) {
str = String.format(s.getString("d"), ms) + str;
str = String.format(s.getString("h"), ms) + str;
}

return str;
Expand Down
1 change: 0 additions & 1 deletion src/main/resources/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ message:
s: "%dseconds "
m: "%dminutes "
h: "%dhours "
d: "%ddays "
zero: "No Record"
statistic-no-record: "No record for that player."

Expand Down

0 comments on commit 464fa9e

Please sign in to comment.