Skip to content

Commit

Permalink
Applied max timeunit to playtime
Browse files Browse the repository at this point in the history
  • Loading branch information
MSWS committed Jan 4, 2022
1 parent 157fbc0 commit 570dac3
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ public void parse(String line) {
String playtime = webId != null ? Convert.timeToStr(user.getPlaytime(webId), config.getLimitPlaytime()) : "";
if (user.getPlaytime(webId) == 0)
playtime = "";
String account = user.getAccountAge() > 0 ? Convert.timeToStr(user.getAccountAge()) : "";
String account = user.getAccountAge() > 0 ? Convert.timeToStr(user.getAccountAge(), config.getLimitPlaytime()) : "";

System.out.printf("#%-3d %-" + longestName + "s %" + longestAge + "s | %-" + longestPlaytime + "s | %-15s\n",
user.getUserId(), user.getServerName(), age, playtime, account);
Expand Down

0 comments on commit 570dac3

Please sign in to comment.